diff options
Diffstat (limited to 'test/parser')
| -rw-r--r-- | test/parser/dshl.fir | 14 | ||||
| -rw-r--r-- | test/parser/mux.fir | 14 |
2 files changed, 28 insertions, 0 deletions
diff --git a/test/parser/dshl.fir b/test/parser/dshl.fir new file mode 100644 index 00000000..99a6ec7d --- /dev/null +++ b/test/parser/dshl.fir @@ -0,0 +1,14 @@ +; RUN: firrtl -i %s -o %s.out -X firrtl && cat %s.out | FileCheck %s +circuit GCD : + module GCD : + input a : UInt<63> + input b : UInt<63> + input sign : UInt<1> + output d : UInt + ;wire T_205 : UInt + node T_203 = UInt<6>("h3f") + node normCount = not(T_203) + node absIn = mux(sign, a, b) + node T_205 = dshl(absIn, normCount) + d <= T_205 + diff --git a/test/parser/mux.fir b/test/parser/mux.fir new file mode 100644 index 00000000..4705aa75 --- /dev/null +++ b/test/parser/mux.fir @@ -0,0 +1,14 @@ +; RUN: firrtl -i %s -o %s.out -X firrtl && cat %s.out | FileCheck %s +circuit GCD : + module GCD : + input e : UInt<1> + input f : UInt<1> + input g : UInt<1> + output o : UInt<1> + node y = f + node z = f + node x = mux(UInt<1>(0),y,z) + o <= x + + + |
