From e6beb7b3bbb745a7c7fde616bb349df1bdb7b764 Mon Sep 17 00:00:00 2001 From: jackbackrack Date: Mon, 13 Apr 2015 18:24:37 -0700 Subject: new chisel3 tests --- test/chisel3/BitsOps.fir | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/chisel3/BitsOps.fir (limited to 'test/chisel3/BitsOps.fir') 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 -- cgit v1.2.3