diff options
| author | azidar | 2015-12-10 14:36:33 -0800 |
|---|---|---|
| committer | azidar | 2016-01-16 11:45:00 -0800 |
| commit | fd35220712129f5f0074444008702af4aaf19ad2 (patch) | |
| tree | 8ac0a08ac325f452b11f4195b86640e65092669f /test/features/Printf.fir | |
| parent | 2beab33ac298470bc04caf1c3b7a5a0d17d465d4 (diff) | |
Finished adding clocks to Stop and Print
Diffstat (limited to 'test/features/Printf.fir')
| -rw-r--r-- | test/features/Printf.fir | 17 |
1 files changed, 9 insertions, 8 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! |
