aboutsummaryrefslogtreecommitdiff
path: root/test/passes/to-verilog/mem.fir
blob: 0d0e0e5f9b9ede9b19c9f782f2deeffcd7bd8bf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: firrtl -i %s -o %s.v -X verilog ; cat %s.v | FileCheck %s

;CHECK: reg  [29:0] m [0:127];
circuit top :
   module top :
      input clk : Clock
      output read : UInt<30>
      cmem m : UInt<30>[128], clk
      read accessor x = m[UInt(0)]
      read := x