From: Adam Megacz Date: Sat, 22 Aug 2009 21:28:03 +0000 (-0700) Subject: better error messages in LoopFactory X-Git-Url: http://git.megacz.com/?p=fleet.git;a=commitdiff_plain;h=13bcbeefd454088963ace6f249de19c47e961234 better error messages in LoopFactory --- diff --git a/src/edu/berkeley/fleet/loops/LoopFactory.java b/src/edu/berkeley/fleet/loops/LoopFactory.java index 1e79135..769a6fc 100644 --- a/src/edu/berkeley/fleet/loops/LoopFactory.java +++ b/src/edu/berkeley/fleet/loops/LoopFactory.java @@ -372,7 +372,8 @@ public class LoopFactory { if (!olc_loop) { if (numInstructionsNotIncludingNonblockingPrefix > capacity) - throw new RuntimeException("instruction sequence is too long for instruction fifo at " + dock); + throw new RuntimeException("instruction sequence is too long for instruction fifo at " + + dock + " ("+numInstructionsNotIncludingNonblockingPrefix+">"+capacity+")"); } else { if (count != 0) { ic.add(new Instruction.Set(dock, Predicate.Default, SetDest.OuterLoopCounter, SetSource.Decrement)); @@ -397,7 +398,8 @@ public class LoopFactory { if (olc_loop) { ic.add(new Instruction.Tail(dock)); if (loopSize > capacity) - throw new RuntimeException("instruction loop is too long for instruction fifo at " + dock); + throw new RuntimeException("instruction loop is too long for instruction fifo at " + + dock + " ("+loopSize+">"+capacity+")"); } if (next != null) {