From eb5ca3c967c929c8331fd17e04dbd9402e41e986 Mon Sep 17 00:00:00 2001 From: azidar Date: Tue, 2 Jun 2015 15:35:02 -0700 Subject: 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 --- test/riscv-mini/Core.fir | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test') 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 : -- cgit v1.2.3