From: Christopher Lu Date: Mon, 5 Jan 2009 09:44:42 +0000 (-0500) Subject: execute: do stuff only if bubble, still incorrect X-Git-Url: http://git.joshuawise.com/firearm.git/commitdiff_plain/f8bf38caa402400c5063dc97da9e810c5d9d7ec5 execute: do stuff only if bubble, still incorrect --- diff --git a/Execute.v b/Execute.v index cefc4ef..4e3f44f 100644 --- 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 */