execute: do stuff only if bubble, still incorrect
authorChristopher Lu <lu@stop.hsd1.pa.comcast.net>
Mon, 5 Jan 2009 09:44:42 +0000 (04:44 -0500)
committerChristopher Lu <lu@stop.hsd1.pa.comcast.net>
Mon, 5 Jan 2009 09:44:42 +0000 (04:44 -0500)
Execute.v

index cefc4ef..4e3f44f 100644 (file)
--- a/Execute.v
+++ b/Execute.v
@@ -163,13 +163,15 @@ module Execute(
                begin end
                `DECODE_BRANCH:
                begin
-                       jmppc = pc + op0 + 32'h8;
-                       if(insn[24]) begin
-                               next_write_reg = 1;
-                               next_write_num = 4'hE; /* link register */
-                               next_write_data = pc + 32'h4;
+                       if(!prevstall && !inbubble) begin
+                               jmppc = pc + op0 + 32'h8;
+                               if(insn[24]) begin
+                                       next_write_reg = 1;
+                                       next_write_num = 4'hE; /* link register */
+                                       next_write_data = pc + 32'h4;
+                               end
+                               jmp = 1'b1;
                        end
-                       jmp = 1'b1;
                end                     /* Branch */
                `DECODE_LDCSTC,         /* Coprocessor data transfer */
                `DECODE_CDP,            /* Coprocessor data op */
This page took 0.019158 seconds and 4 git commands to generate.