diff options
| author | azidar | 2015-08-20 15:35:43 -0700 |
|---|---|---|
| committer | azidar | 2015-08-20 15:35:43 -0700 |
| commit | 5694a8808bd724b820caca2f5f1176b8c1e3f40d (patch) | |
| tree | 92817e13e0639c9a4c4b9341c147242e7d3d2040 /test/errors | |
| parent | 169164c3ad828ccae89c43d4bdbb531f3a2e6237 (diff) | |
Added tests, cleaned up repo
Diffstat (limited to 'test/errors')
| -rw-r--r-- | test/errors/gender/ReadOutput.fir | 12 | ||||
| -rw-r--r-- | test/errors/type/Primop.fir | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/test/errors/gender/ReadOutput.fir b/test/errors/gender/ReadOutput.fir new file mode 100644 index 00000000..14ac75c1 --- /dev/null +++ b/test/errors/gender/ReadOutput.fir @@ -0,0 +1,12 @@ +; RUN: firrtl -i %s -o %s.v -X verilog -p c 2>&1 | tee %s.out | FileCheck %s +; CHECK: Expression out$y is used as a sink but can only be used as a source. + +circuit BTB : + module BTB : + output out : {x : UInt<1>, flip y : UInt<1>} + + wire w : {x : UInt<1>, flip y : UInt<1>} + w.x := UInt(1) + w.y := UInt(1) + out.x := UInt(1) + w <> out diff --git a/test/errors/type/Primop.fir b/test/errors/type/Primop.fir index b721881e..cb75521a 100644 --- a/test/errors/type/Primop.fir +++ b/test/errors/type/Primop.fir @@ -1,7 +1,7 @@ ; 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 mux requires argument SInt("h00000001") to be a UInt type. +; CHECK: Primop mux requires argument SInt("h1") to be a UInt type. circuit Top : module Top : |
