diff options
| author | jackbackrack | 2015-06-02 08:47:40 -0700 |
|---|---|---|
| committer | jackbackrack | 2015-06-02 08:47:40 -0700 |
| commit | b178ca42fd9d4f7b94d80c01cd810bf18da9ebc8 (patch) | |
| tree | 033e197aa2e297187e21712faf1957eb405b435b /test/errors/type | |
| parent | e668a13b285c87678a708a8af5bee2cfa0f7645b (diff) | |
| parent | 8fc826a2770f46d63d8d7b1bccf14d2bf6e6b7cd (diff) | |
merge + fix trim to use correct bits operands
Diffstat (limited to 'test/errors/type')
| -rw-r--r-- | test/errors/type/NodeWithFlips.fir | 8 | ||||
| -rw-r--r-- | test/errors/type/Primop.fir | 15 |
2 files changed, 23 insertions, 0 deletions
diff --git a/test/errors/type/NodeWithFlips.fir b/test/errors/type/NodeWithFlips.fir new file mode 100644 index 00000000..1342f78d --- /dev/null +++ b/test/errors/type/NodeWithFlips.fir @@ -0,0 +1,8 @@ +; RUN: firrtl -i %s -o %s.flo -X flo -p c | tee %s.out | FileCheck %s +; CHECK: Node cannot be a bundle type with flips. + +circuit Top : + module Top : + wire x : {x : UInt, flip y : UInt} + node z = x + diff --git a/test/errors/type/Primop.fir b/test/errors/type/Primop.fir new file mode 100644 index 00000000..b3a5dbc6 --- /dev/null +++ b/test/errors/type/Primop.fir @@ -0,0 +1,15 @@ +; RUN: firrtl -i %s -o %s.flo -X flo -p c | tee %s.out | FileCheck %s +; CHECK: Primop mux requires all operands to have the same type. +; CHECK: Primop add cannot operate on non-ground types. +; CHECK: Primop add cannot operate on non-ground types. +; CHECK: Primop bits requires all arguments to be UInt type. +; CHECK: Primop mux requires argument SInt(1) to be a UInt type. + +circuit Top : + module Top : + node x = mux(UInt(1),SInt(1),UInt(1)) + wire a : { q : UInt<1> } + node y = add(a,a) + node z = bits(SInt<10>(-1),1,2) + node zz = mux(SInt(1),UInt(1),UInt(1)) + |
