aboutsummaryrefslogtreecommitdiff
path: root/test/features/TwoClocks.fir
diff options
context:
space:
mode:
authorazidar2016-01-26 14:18:34 -0800
committerazidar2016-01-28 09:25:04 -0800
commit5ab30c681558d2a26000696e518ee5b28deb1303 (patch)
treedcdfaeb3bcb42561e010928712218c8cd3a1b2c7 /test/features/TwoClocks.fir
parent8c288f7b159b3f4ca1cb0d5c5012eb8fb52d5214 (diff)
Updated all tests to pass
Diffstat (limited to 'test/features/TwoClocks.fir')
-rw-r--r--test/features/TwoClocks.fir14
1 files changed, 9 insertions, 5 deletions
diff --git a/test/features/TwoClocks.fir b/test/features/TwoClocks.fir
index 6562d3e1..3753ee8d 100644
--- a/test/features/TwoClocks.fir
+++ b/test/features/TwoClocks.fir
@@ -5,14 +5,18 @@ circuit Top :
input clk2 : Clock
input reset1 : UInt<1>
input reset2 : UInt<1>
- reg src : UInt<10>, clk1, reset1, UInt(0)
- reg sink : UInt<10>, clk2, reset2, UInt(0)
+ reg src : UInt<10>, clk1 with :
+ reset => ( reset1, UInt(0))
+ reg sink : UInt<10>, clk2 with :
+ reset => ( reset2, UInt(0))
- src <= addw(src,UInt(1))
+ src <= add(src,UInt(1))
- reg sync_A : UInt<10>, clk2, reset2, UInt(0)
+ reg sync_A : UInt<10>, clk2 with :
+ reset => ( reset2, UInt(0))
sync_A <= src
- reg sync_B : UInt<10>, clk2, reset2, UInt(0)
+ reg sync_B : UInt<10>, clk2 with :
+ reset => ( reset2, UInt(0))
sync_B <= sync_A
sink <= sync_B