use DATAWIDTH instead of INSTRUCTION_WIDTH in Memory.ship
authoradam <adam@megacz.com>
Mon, 27 Oct 2008 14:22:27 +0000 (15:22 +0100)
committeradam <adam@megacz.com>
Mon, 27 Oct 2008 14:22:27 +0000 (15:22 +0100)
ships/Memory.ship

index f97347c..5395cb3 100644 (file)
@@ -202,7 +202,7 @@ sequence guarantee problem mentioned in the previous paragraph.
       // assumes we never want a zero-length codebag
       if ( inCBD_r && !inCBD_a && !out_r && !out_a) begin
         if (!dispatching_cbd) begin
-          cursor          <= inCBD_d[(`INSTRUCTION_WIDTH-1):(`CODEBAG_SIZE_BITS)];
+          cursor          <= inCBD_d[(`DATAWIDTH-1):(`CODEBAG_SIZE_BITS)];
           counter         <= 0;
           dispatching_cbd <= 1;
         end