From: Adam Megacz Date: Thu, 9 Apr 2009 03:56:52 +0000 (+0000) Subject: fix bug in InstructionStopper X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=869a4b03ccb40a5f441c38fb91490ed3f39834e6;p=fleet.git fix bug in InstructionStopper --- diff --git a/testCode/com/sun/vlsi/chips/marina/test/InstructionStopper.java b/testCode/com/sun/vlsi/chips/marina/test/InstructionStopper.java index 58ef88d..a3ec9c5 100644 --- a/testCode/com/sun/vlsi/chips/marina/test/InstructionStopper.java +++ b/testCode/com/sun/vlsi/chips/marina/test/InstructionStopper.java @@ -32,10 +32,13 @@ public class InstructionStopper extends ProperStopper { if (instr.getNumBits()==MarinaPacket.PACKET_WIDTH) { super.fill(instr); } else { + MarinaUtils.expectLength(instr, MarinaPacket.WORD_WIDTH); + /* MarinaUtils.expectLength(instr, INSTRUCTION_LENGTH); BitVector pad = new BitVector(MarinaPacket.WORD_WIDTH-INSTRUCTION_LENGTH, "pad"); pad.setFromLong(0); - super.fill(new MarinaPacket(instr.cat(pad), false)); + */ + super.fill(new MarinaPacket(instr /*.cat(pad)*/, false)); } }