aboutsummaryrefslogtreecommitdiff
path: root/test/features/SeqMem.fir
blob: 998df8c9c205eafc5b9d46710c7559db9880842f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
; RUN: firrtl -i %s -o %s.v -X verilog -p c | tee %s.out | FileCheck %s
;CHECK: Done!
circuit Top : 
  module Top : 
    wire i : UInt<5>
    wire i0 : UInt<5>
    wire j : UInt<128>

    i0 := UInt(10)

    cmem m-com : UInt<128>[32]
    accessor r-com = m-com[i]
    accessor w-com = m-com[i]
    j := r-com
    w-com := j


    smem m-seq : UInt<128>[32]
    accessor r-seq = m-seq[i]
    accessor w-seq = m-seq[i]
    j := r-seq
    w-seq := j