From fd35220712129f5f0074444008702af4aaf19ad2 Mon Sep 17 00:00:00 2001 From: azidar Date: Thu, 10 Dec 2015 14:36:33 -0800 Subject: Finished adding clocks to Stop and Print --- test/features/Printf.fir | 17 +++++++++-------- test/features/Stop.fir | 13 +++++++------ 2 files changed, 16 insertions(+), 14 deletions(-) (limited to 'test/features') 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! -- cgit v1.2.3