aboutsummaryrefslogtreecommitdiff
path: root/test/features
diff options
context:
space:
mode:
authorazidar2015-12-10 14:36:33 -0800
committerazidar2016-01-16 11:45:00 -0800
commitfd35220712129f5f0074444008702af4aaf19ad2 (patch)
tree8ac0a08ac325f452b11f4195b86640e65092669f /test/features
parent2beab33ac298470bc04caf1c3b7a5a0d17d465d4 (diff)
Finished adding clocks to Stop and Print
Diffstat (limited to 'test/features')
-rw-r--r--test/features/Printf.fir17
-rw-r--r--test/features/Stop.fir13
2 files changed, 16 insertions, 14 deletions
diff --git a/test/features/Printf.fir b/test/features/Printf.fir
index 8449825f..2f8dc985 100644
--- a/test/features/Printf.fir
+++ b/test/features/Printf.fir
@@ -5,15 +5,16 @@ circuit Top :
module Top :
input x : {y : UInt<1>}
input p : UInt<1>
- printf("Hello World!\n")
- printf("Hello World! %x\n", x.y)
+ input clk : Clock
+ printf(clk,"Hello World!\n")
+ printf(clk,"Hello World! %x\n", x.y)
when p :
- printf("In consequence\n")
+ printf(clk,"In consequence\n")
else :
- printf("In alternate\n")
+ printf(clk,"In alternate\n")
-;CHECK: printf("Hello World!\n")
-;CHECK: printf("Hello World! %x\n", x$y)
-;CHECK: when p : printf("In consequence\n")
-;CHECK: when not(p) : printf("In alternate\n")
+;CHECK: printf(clk, "Hello World!\n")
+;CHECK: printf(clk, "Hello World! %x\n", x$y)
+;CHECK: when p : printf(clk, "In consequence\n")
+;CHECK: when not(p) : printf(clk, "In alternate\n")
;CHECK: Done!
diff --git a/test/features/Stop.fir b/test/features/Stop.fir
index fc8869fa..16e25416 100644
--- a/test/features/Stop.fir
+++ b/test/features/Stop.fir
@@ -6,15 +6,16 @@ circuit Top :
module Top :
input p : UInt<1>
input q : UInt<1>
+ input clk : Clock
when p :
- stop(0)
+ stop(clk,0)
when q :
- stop(1)
- stop(3)
+ stop(clk,1)
+ stop(clk,3)
-;CHECK: when p : stop(0)
-;CHECK: when q : stop(1)
-;CHECK: stop(3)
+;CHECK: when p : stop(clk, 0)
+;CHECK: when q : stop(clk, 1)
+;CHECK: stop(clk, 3)
;CHECK: Done!