aboutsummaryrefslogtreecommitdiff
path: root/test/features/InitializeVec.fir
diff options
context:
space:
mode:
authorazidar2015-12-09 18:31:45 -0800
committerazidar2016-01-16 14:28:17 -0800
commitbe78d49aa01c097978f69a3b022acb2047fdf438 (patch)
tree76dc4b32b5e6861938404ebb4d124ca5b87d13a5 /test/features/InitializeVec.fir
parentc427b31a1ef8361b643d5f7435aeb42472dfe626 (diff)
New memory works with verilog. Slowly changing tests and fixing bugs.
Decided to not have Conditionally in low firrtl - instead, Print and Stop have enables
Diffstat (limited to 'test/features/InitializeVec.fir')
-rw-r--r--test/features/InitializeVec.fir24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/features/InitializeVec.fir b/test/features/InitializeVec.fir
index 0aa28835..ef6400a0 100644
--- a/test/features/InitializeVec.fir
+++ b/test/features/InitializeVec.fir
@@ -6,17 +6,17 @@ circuit Tst :
input in : {valid : UInt<1>, flip ready : UInt<1>, bits : UInt<8>}
output outs : {valid : UInt<1>, flip ready : UInt<1>, bits : UInt<8>}[4]
- in.ready := UInt<1>(1)
- outs[0].valid := UInt<1>(0)
- outs[0].bits := UInt<1>(0)
- outs[1].valid := UInt<1>(0)
- outs[1].bits := UInt<1>(0)
- outs[2].valid := UInt<1>(0)
- outs[2].bits := UInt<1>(0)
- outs[3].valid := UInt<1>(0)
- outs[3].bits := UInt<1>(0)
- in.ready := UInt<1>(1)
+ in.ready <= UInt<1>(1)
+ outs[0].valid <= UInt<1>(0)
+ outs[0].bits <= UInt<1>(0)
+ outs[1].valid <= UInt<1>(0)
+ outs[1].bits <= UInt<1>(0)
+ outs[2].valid <= UInt<1>(0)
+ outs[2].bits <= UInt<1>(0)
+ outs[3].valid <= UInt<1>(0)
+ outs[3].bits <= UInt<1>(0)
+ in.ready <= UInt<1>(1)
infer accessor out = outs[in.bits]
when out.ready :
- out.bits := UInt<7>(99)
- out.valid := UInt<1>(1)
+ out.bits <= UInt<7>(99)
+ out.valid <= UInt<1>(1)