aboutsummaryrefslogtreecommitdiff
path: root/test/custom
diff options
context:
space:
mode:
authorazidar2015-08-24 11:45:37 -0700
committerazidar2015-08-24 11:45:37 -0700
commit5d3061bfed8445370e6fa97ec9238ba49e8fafbc (patch)
treeba0373c05118215fa332c9e7cd10233a69800f53 /test/custom
parent50cf7a4823d69967dcb2b10cdef892b0ab5f2184 (diff)
Changed all tests to use verilog backend.
Diffstat (limited to 'test/custom')
-rw-r--r--test/custom/when-coverage/gcd.fir21
1 files changed, 14 insertions, 7 deletions
diff --git a/test/custom/when-coverage/gcd.fir b/test/custom/when-coverage/gcd.fir
index d3e9d35b..4c1409d1 100644
--- a/test/custom/when-coverage/gcd.fir
+++ b/test/custom/when-coverage/gcd.fir
@@ -1,4 +1,5 @@
-; RUN: firrtl -i %s -o %s.v -X verilute -s coverage -s when-scope -p c | tee %s.out | FileCheck %s
+; RUN: firrtl -i %s -o %s.v -X verilute -s coverage -s when-scope -p c 2>&1 | tee %s.out | FileCheck %s
+; XFAIL: *
;CHECK: Verilog
circuit top :
@@ -6,17 +7,19 @@ circuit top :
input x : UInt
input y : UInt
output q : UInt
- q := sub-wrap(x, y)
+ q := subw(x, y)
module gcd :
input a : UInt<16>
input b : UInt<16>
input e : UInt<1>
+ input clk : Clock
+ input reset : UInt<1>
output z : UInt<16>
output v : UInt<1>
- reg x : UInt
- reg y : UInt
- on-reset x := UInt(0)
- on-reset y := UInt(42)
+ reg x : UInt,clk,reset
+ reg y : UInt,clk,reset
+ onreset x := UInt(0)
+ onreset y := UInt(42)
when gt(x, y) :
inst s of subtracter
s.x := x
@@ -30,16 +33,20 @@ circuit top :
when e :
x := a
y := b
- v := eq(v, UInt(0))
+ v := eqv(v, UInt(0))
z := x
module top :
input a : UInt<16>
input b : UInt<16>
+ input clk : Clock
+ input reset : UInt<1>
output z : UInt
inst i of gcd
i.a := a
i.b := b
i.e := UInt(1)
+ i.clk := clk
+ i.reset := reset
z := i.z
;CHECK: Done!