diff options
Diffstat (limited to 'test/features/SeqMem.fir')
| -rw-r--r-- | test/features/SeqMem.fir | 42 |
1 files changed, 32 insertions, 10 deletions
diff --git a/test/features/SeqMem.fir b/test/features/SeqMem.fir index 354bd8de..d97435af 100644 --- a/test/features/SeqMem.fir +++ b/test/features/SeqMem.fir @@ -10,15 +10,37 @@ circuit Top : 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 + mem m-com : + data-type => UInt<128> + depth => 32 + reader => r + writer => w + read-latency => 0 + write-latency => 1 + m-com.r.addr <= i + m-com.r.en <= UInt(1) + m-com.r.clk <= clk + m-com.w.addr <= i + m-com.w.mask <= UInt(1) + m-com.w.en <= UInt(1) + m-com.w.clk <= clk + j <= m-com.r.data + m-com.w.data <= 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 + mem m-seq : + data-type => UInt<128> + depth => 32 + reader => r + writer => w + read-latency => 1 + write-latency => 1 + m-seq.r.addr <= i + m-seq.r.en <= UInt(1) + m-seq.r.clk <= clk + m-seq.w.addr <= i + m-seq.w.mask <= UInt(1) + m-seq.w.en <= UInt(1) + m-seq.w.clk <= clk + j <= m-seq.r.data + m-seq.w.data <= j |
