aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/passes/Legalize
diff options
context:
space:
mode:
authorJim Lawson2016-12-08 09:25:42 -0800
committerJack Koenig2016-12-08 09:25:42 -0800
commitcfb3a48986500422cbf6ba8887030dee3a973933 (patch)
tree61318120adf506e6110f861a28a56801f43a0813 /src/test/resources/passes/Legalize
parentd6f8b4c9b8d602d669497833901bd9c80f2340df (diff)
Clk2clock - rename the implicit "clk" module input "clock" (#387)
* Rename implict module "clk" input to "clock". This doesn't rename all the "self-contained" test instances. nor the memory "clk" enables, nor the implict module "clk"s in the regress .fir files. * Consistency: rename implict module "clk" input to "clock" in "self-contained" test instances. This doesn't rename the memory "clk" enables, nor the implict module "clk"s in the regress .fir files.
Diffstat (limited to 'src/test/resources/passes/Legalize')
-rw-r--r--src/test/resources/passes/Legalize/Legalize.fir22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/test/resources/passes/Legalize/Legalize.fir b/src/test/resources/passes/Legalize/Legalize.fir
index 8d8ac8bd..716dff83 100644
--- a/src/test/resources/passes/Legalize/Legalize.fir
+++ b/src/test/resources/passes/Legalize/Legalize.fir
@@ -1,18 +1,18 @@
; See LICENSE for license details.
circuit Legalize :
module Legalize :
- input clk : Clock
+ input clock : Clock
input reset : UInt<1>
; Count till done
node done = UInt(6)
- reg count : UInt<16>, clk with :
+ reg count : UInt<16>, clock with :
reset => (reset, UInt(0))
when neq(count, done) :
count <= add(count, UInt(1))
when not(reset) :
when eq(count, done) :
- stop(clk, UInt(1), 0)
+ stop(clock, UInt(1), 0)
; Begin Test
; Check assignment to smaller width
@@ -20,22 +20,22 @@ circuit Legalize :
wire y : UInt<16>
y <- x
when neq(y, UInt("hbeef")) :
- printf(clk, UInt(1), "Assertion failed!\n y != beef\n")
- stop(clk, UInt(1), 1)
+ printf(clock, UInt(1), "Assertion failed!\n y != beef\n")
+ stop(clock, UInt(1), 1)
; Check bit select of literal
node b = bits(UInt("hd0"), 7, 5)
node b2 = bits(UInt("h9"), 3, 3)
when neq(b, UInt(6)) :
- printf(clk, UInt(1), "Assertion failed!\n b != 6\n")
- stop(clk, UInt(1), 1)
+ printf(clock, UInt(1), "Assertion failed!\n b != 6\n")
+ stop(clock, UInt(1), 1)
when neq(b2, UInt(1)) :
- printf(clk, UInt(1), "Assertion failed!\n b2 != 1\n")
- stop(clk, UInt(1), 1)
+ printf(clock, UInt(1), "Assertion failed!\n b2 != 1\n")
+ stop(clock, UInt(1), 1)
; Check padding of literal
node bar = pad(SInt(-1), 16)
node bar_15 = bits(bar, 15, 15)
when neq(bar_15, UInt(1)) :
- printf(clk, UInt(1), "Assertion failed!\n bar_15 != 0\n")
- stop(clk, UInt(1), 1)
+ printf(clock, UInt(1), "Assertion failed!\n bar_15 != 0\n")
+ stop(clock, UInt(1), 1)