aboutsummaryrefslogtreecommitdiff
path: root/test/passes/to-verilog/mem.fir
blob: 5d1c60f0c5550a5c6da2c9df9df4e71e9f2ad433 (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