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

    i0 := UInt(10)

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


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