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/ModuleVec.fir | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 test/chisel3/ModuleVec.fir (limited to 'test/chisel3/ModuleVec.fir') diff --git a/test/chisel3/ModuleVec.fir b/test/chisel3/ModuleVec.fir new file mode 100644 index 00000000..1372d1f6 --- /dev/null +++ b/test/chisel3/ModuleVec.fir @@ -0,0 +1,25 @@ +circuit ModuleVec : + module PlusOne : + input in : UInt(32) + output out : UInt(32) + + node T_34 : UInt(1) = UInt(1, 1) + node T_35 : UInt(32) = add(in, T_34) + out := T_35 + module PlusOne_26 : + input in : UInt(32) + output out : UInt(32) + + node T_36 : UInt(1) = UInt(1, 1) + node T_37 : UInt(32) = add(in, T_36) + out := T_37 + module ModuleVec : + input ins : UInt(32)[2] + output outs : UInt(32)[2] + + instance T_38 of PlusOne + instance T_39 of PlusOne_26 + pluses.0.in := ins.0 + outs.0 := pluses.0.out + pluses.1.in := ins.1 + outs.1 := pluses.1.out \ No newline at end of file -- cgit v1.2.3