diff options
Diffstat (limited to 'test/chisel3/BitsOps.fir')
| -rw-r--r-- | test/chisel3/BitsOps.fir | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/chisel3/BitsOps.fir b/test/chisel3/BitsOps.fir new file mode 100644 index 00000000..5fa56b60 --- /dev/null +++ b/test/chisel3/BitsOps.fir @@ -0,0 +1,17 @@ +circuit BitsOps : + module BitsOps : + input b : UInt(16) + input a : UInt(16) + output notout : UInt(16) + output andout : UInt(16) + output orout : UInt(16) + output xorout : UInt(16) + + node T_13 : UInt = bit-not(a) + notout := T_13 + node T_14 : UInt = bit-and(a, b) + andout := T_14 + node T_15 : UInt = bit-or(a, b) + orout := T_15 + node T_16 : UInt = bit-xor(a, b) + xorout := T_16
\ No newline at end of file |
