aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorazidar2015-06-02 15:35:02 -0700
committerazidar2015-06-02 15:35:02 -0700
commiteb5ca3c967c929c8331fd17e04dbd9402e41e986 (patch)
tree8bd5b7e62b54376cbc6fc9a8b145a7e345d90b16 /test
parent13228ed1bf546ad351ecb82ee094eb71e3fe4749 (diff)
Changed Core.fir so dshl wasn't huge. Fixed padding pass to preserve correct low-firrtl syntax. Generates verilog that compiles, but is not correct
Diffstat (limited to 'test')
-rw-r--r--test/riscv-mini/Core.fir10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/riscv-mini/Core.fir b/test/riscv-mini/Core.fir
index 06010573..eaa5697e 100644
--- a/test/riscv-mini/Core.fir
+++ b/test/riscv-mini/Core.fir
@@ -1,4 +1,4 @@
-; RUN: firrtl -i %s -o %s.v -X verilog -p c | tee %s.out | FileCheck %s
+; RUN: firrtl -i %s -o %s.v -X verilog -p cwT | tee %s.out | FileCheck %s
;CHECK: Done!
circuit Core :
@@ -195,12 +195,12 @@ circuit Core :
when T_1346 :
node T_1347 = eq(addr, UInt<12>(1310))
when T_1347 :
- node T_1348 = dshl(UInt<1>(1), src)
+ node T_1348 = dshl(UInt<1>(1), bits(src,5,0))
node T_1349 = bit-or(data, T_1348)
reg_tohost := T_1349
node T_1350 = eq(addr, UInt<12>(1290))
when T_1350 :
- node T_1351 = dshl(UInt<1>(1), src)
+ node T_1351 = dshl(UInt<1>(1), bits(src,5,0))
node T_1352 = bit-or(data, T_1351)
reg_status := T_1352
node T_1353 = eq(cmd, UInt<2>(3))
@@ -209,12 +209,12 @@ circuit Core :
when T_1355 :
node T_1356 = eq(addr, UInt<12>(1310))
when T_1356 :
- node T_1357 = dshl(UInt<1>(0), src)
+ node T_1357 = dshl(UInt<1>(0), bits(src,5,0))
node T_1358 = bit-and(data, T_1357)
reg_tohost := T_1358
node T_1359 = eq(addr, UInt<12>(1290))
when T_1359 :
- node T_1360 = dshl(UInt<1>(0), src)
+ node T_1360 = dshl(UInt<1>(0), bits(src,5,0))
node T_1361 = bit-and(data, T_1360)
reg_status := T_1361
module Datapath :