diff options
| author | azidar | 2015-08-18 15:37:30 -0700 |
|---|---|---|
| committer | azidar | 2015-08-18 15:37:30 -0700 |
| commit | 6253cb0880a39a046417490ae42da3789a2b5a27 (patch) | |
| tree | 65cf5971f767307e29dfc23765fb6e2b49a3b066 /test | |
| parent | dc80d4f52a76aab8fcf0053b988658dd3857270c (diff) | |
Fixed so its length is greater than what it connects to. Changed shr to be extract, not >>
Diffstat (limited to 'test')
| -rw-r--r-- | test/passes/expand-connect-indexed/bundle-vecs.fir | 6 | ||||
| -rw-r--r-- | test/passes/expand-whens/bundle-init.fir | 4 | ||||
| -rw-r--r-- | test/passes/expand-whens/reg-dwc.fir | 4 | ||||
| -rw-r--r-- | test/passes/expand-whens/reg-dwoc.fir | 4 | ||||
| -rw-r--r-- | test/passes/expand-whens/wacc-wdc.fir | 6 | ||||
| -rw-r--r-- | test/passes/infer-types/bundle.fir | 4 | ||||
| -rw-r--r-- | test/passes/infer-types/primops.fir | 9 |
7 files changed, 22 insertions, 15 deletions
diff --git a/test/passes/expand-connect-indexed/bundle-vecs.fir b/test/passes/expand-connect-indexed/bundle-vecs.fir index 70a52088..9bbdb11c 100644 --- a/test/passes/expand-connect-indexed/bundle-vecs.fir +++ b/test/passes/expand-connect-indexed/bundle-vecs.fir @@ -24,10 +24,10 @@ circuit top : ; CHECK: wire b{{[_$]+}}y : UInt<32> ; CHECK: b{{[_$]+}}x := a{{[_$]+}}0{{[_$]+}}x ; CHECK: node i_1 = i - ; CHECK: when eqv(i_1, UInt("h00000001")) : b{{[_$]+}}x := a{{[_$]+}}1{{[_$]+}}x + ; CHECK: when eqv(i_1, UInt("h1")) : b{{[_$]+}}x := a{{[_$]+}}1{{[_$]+}}x ; CHECK: node i_2 = i - ; CHECK: when eqv(i_2, UInt("h00000000")) : a{{[_$]+}}0{{[_$]+}}y := b{{[_$]+}}y - ; CHECK: when eqv(i_2, UInt("h00000001")) : a{{[_$]+}}1{{[_$]+}}y := b{{[_$]+}}y + ; CHECK: when eqv(i_2, UInt("h0")) : a{{[_$]+}}0{{[_$]+}}y := b{{[_$]+}}y + ; CHECK: when eqv(i_2, UInt("h1")) : a{{[_$]+}}1{{[_$]+}}y := b{{[_$]+}}y j := b.x b.y := UInt(1) diff --git a/test/passes/expand-whens/bundle-init.fir b/test/passes/expand-whens/bundle-init.fir index f7b14c0f..21bbbc52 100644 --- a/test/passes/expand-whens/bundle-init.fir +++ b/test/passes/expand-whens/bundle-init.fir @@ -19,8 +19,8 @@ circuit top : ; CHECK: r$x := mux(reset, w$x, a) ; CHECK: r$y := mux(reset, w$y, b) -; CHECK: a := UInt("h00000001") -; CHECK: b := UInt("h00000002") +; CHECK: a := UInt("h1") +; CHECK: b := UInt("h2") ; CHECK: w$x := b ; CHECK: w$y := a diff --git a/test/passes/expand-whens/reg-dwc.fir b/test/passes/expand-whens/reg-dwc.fir index f8076a3e..2403816a 100644 --- a/test/passes/expand-whens/reg-dwc.fir +++ b/test/passes/expand-whens/reg-dwc.fir @@ -15,8 +15,8 @@ circuit top : ; CHECK: module top : ; CHECK: wire p : UInt ; CHECK: reg r : UInt -; CHECK: p := UInt("h00000001") -; CHECK: when p : r := UInt("h00000002") +; CHECK: p := UInt("h1") +; CHECK: when p : r := UInt("h2") ; CHECK: Finished Expand Whens diff --git a/test/passes/expand-whens/reg-dwoc.fir b/test/passes/expand-whens/reg-dwoc.fir index 0defc432..a32985b6 100644 --- a/test/passes/expand-whens/reg-dwoc.fir +++ b/test/passes/expand-whens/reg-dwoc.fir @@ -16,8 +16,8 @@ circuit top : ; CHECK: module top : ; CHECK: wire p : UInt ; CHECK: reg r : UInt, clk, reset -; CHECK: p := UInt("h00000001") -; CHECK: when p : r := mux(reset, UInt("h00000001"), UInt("h00000002")) +; CHECK: p := UInt("h1") +; CHECK: when p : r := mux(reset, UInt("h1"), UInt("h2")) ; CHECK: Finished Expand Whens diff --git a/test/passes/expand-whens/wacc-wdc.fir b/test/passes/expand-whens/wacc-wdc.fir index 127e10ed..001f2f25 100644 --- a/test/passes/expand-whens/wacc-wdc.fir +++ b/test/passes/expand-whens/wacc-wdc.fir @@ -15,9 +15,9 @@ circuit top : ; CHECK: module top : ; CHECK: wire p : UInt ; CHECK: cmem m : UInt<4>[10], clk -; CHECK: write accessor a = m[UInt("h00000003")] -; CHECK: p := UInt("h00000001") -; CHECK: when p : a := UInt("h00000002") +; CHECK: write accessor a = m[UInt("h3")] +; CHECK: p := UInt("h1") +; CHECK: when p : a := UInt("h2") ; CHECK: Finished Expand Whens diff --git a/test/passes/infer-types/bundle.fir b/test/passes/infer-types/bundle.fir index f3bfa522..98e48c0c 100644 --- a/test/passes/infer-types/bundle.fir +++ b/test/passes/infer-types/bundle.fir @@ -20,10 +20,10 @@ circuit top : a[8] := UInt(1) a[9] := UInt(1) node b = a[2] ;CHECK: node b = a@<t:UInt<3>[10]@<t:UInt>>[2]@<t:UInt> - read accessor c = a[UInt(3)] ;CHECK: read accessor c = a@<t:UInt<3>[10]@<t:UInt>>[UInt("h00000003")] + read accessor c = a[UInt(3)] ;CHECK: read accessor c = a@<t:UInt<3>[10]@<t:UInt>>[UInt("h3")] ; CHECK: Finished Infer Types ; CHECK: Resolve Genders -; CHECK: read accessor c = a@<t:UInt<3>[10]@<t:UInt>>[UInt("h00000003")] +; CHECK: read accessor c = a@<t:UInt<3>[10]@<t:UInt>>[UInt("h3")] ; CHECK: Finished Resolve Genders diff --git a/test/passes/infer-types/primops.fir b/test/passes/infer-types/primops.fir index 45c88a43..94f481f7 100644 --- a/test/passes/infer-types/primops.fir +++ b/test/passes/infer-types/primops.fir @@ -1,4 +1,4 @@ -; RUN: firrtl -i %s -o %s.flo -X flo -p ct 2>&1 | tee %s.out | FileCheck %s +; RUN: firrtl -i %s -o %s.v -X verilog -p ct 2>&1 | tee %s.out | FileCheck %s ;CHECK: Infer Types circuit top : @@ -9,6 +9,12 @@ circuit top : wire d : SInt<8> wire e : UInt<1> + a := UInt(1) + b := UInt(1) + c := SInt(1) + d := SInt(1) + e := UInt(1) + node vadd = add(a, c) ;CHECK: node vadd = add(a@<t:UInt>, c@<t:SInt>)@<t:SInt> node wadd = add(a, b) ;CHECK: node wadd = add(a@<t:UInt>, b@<t:UInt>)@<t:UInt> node xadd = add(a, d) ;CHECK: node xadd = add(a@<t:UInt>, d@<t:SInt>)@<t:SInt> @@ -139,6 +145,7 @@ circuit top : node wshr = shr(a, 10) ;CHECK: node wshr = shr(a@<t:UInt>, 10)@<t:UInt> node zshr = shr(c, 10) ;CHECK: node zshr = shr(c@<t:SInt>, 10)@<t:SInt> + node vcvt = cvt(a) ;CHECK: node vcvt = cvt(a@<t:UInt>)@<t:SInt> node wcvt = cvt(a) ;CHECK: node wcvt = cvt(a@<t:UInt>)@<t:SInt> node zcvt = cvt(c) ;CHECK: node zcvt = cvt(c@<t:SInt>)@<t:SInt> |
