aboutsummaryrefslogtreecommitdiff
path: root/test/chisel3/BitsOps.fir
diff options
context:
space:
mode:
authorjackbackrack2015-04-13 18:24:37 -0700
committerjackbackrack2015-04-13 18:24:37 -0700
commite6beb7b3bbb745a7c7fde616bb349df1bdb7b764 (patch)
tree392bc8ed6dc497aaa98329133bd135d729426e3d /test/chisel3/BitsOps.fir
parentc140b1ffbcf7fb5b2bb05e93388b2c79f2ddf9f9 (diff)
new chisel3 tests
Diffstat (limited to 'test/chisel3/BitsOps.fir')
-rw-r--r--test/chisel3/BitsOps.fir17
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