From 7646c2e3edf90ea13a83b76c97f35877263c5e63 Mon Sep 17 00:00:00 2001 From: Adam Izraelevitz Date: Wed, 29 Jul 2015 15:00:37 -0700 Subject: Finished supporting Chisel 2.0 Ref Chip --- test/chisel3/Test.fir | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'test/chisel3/Test.fir') diff --git a/test/chisel3/Test.fir b/test/chisel3/Test.fir index 1a39b93a..f0d8f80e 100644 --- a/test/chisel3/Test.fir +++ b/test/chisel3/Test.fir @@ -3,10 +3,16 @@ circuit Test : module Test : - wire x : UInt - x := UInt(0) - x := UInt(1) - x := UInt(10) - x := UInt(21474836) - x := UInt("h21474836") + input clk : Clock + input reset : UInt<1> + input falling : UInt<1> + + reg hold : UInt<100>, clk, UInt(1) + + hold := UInt("h42") + when reset : + hold := UInt("h7f") + else : + when falling : + hold := UInt("h8f") -- cgit v1.2.3