diff options
| author | jackkoenig | 2016-03-14 22:35:06 -0700 |
|---|---|---|
| committer | jackkoenig | 2016-03-15 13:43:57 -0700 |
| commit | 373d3cfcb5566c448dcad6b679dee43bf66f878a (patch) | |
| tree | 6a80e496588f56f5c52be40bcc0155ba8987811a /src/test/resources/features | |
| parent | 5737a8ccbf54a6d22095023205867e851e204c3f (diff) | |
Revamp string literal handling
Diffstat (limited to 'src/test/resources/features')
| -rw-r--r-- | src/test/resources/features/Printf.fir | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/resources/features/Printf.fir b/src/test/resources/features/Printf.fir new file mode 100644 index 00000000..d0c1c775 --- /dev/null +++ b/src/test/resources/features/Printf.fir @@ -0,0 +1,16 @@ +circuit Top : + module Top : + input clk : Clock + input reset : UInt<1> + + reg count : UInt<10>, clk with : + reset => (reset, UInt<6>(0)) + reg const : UInt<32> clk with : + reset => (reset, UInt(123456)) + + node notReset = not(reset) + count <= add(count, UInt(1)) + printf(clk, notReset, "\tcount = %d 0x%x b%b\\\'%d%%\'\n", count, count, count, const) + + when eq(count, UInt(255)) : + stop(clk, UInt(1), 0) |
