mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	Fixed compressed branch class decode.
This commit is contained in:
		
							parent
							
								
									2ee6ffe74b
								
							
						
					
					
						commit
						3652673487
					
				| @ -28,7 +28,7 @@ | |||||||
| 
 | 
 | ||||||
| `include "wally-config.vh" | `include "wally-config.vh" | ||||||
| 
 | 
 | ||||||
| `define INSTR_CLASS_PRED 0 | `define INSTR_CLASS_PRED 1 | ||||||
| 
 | 
 | ||||||
| module bpred ( | module bpred ( | ||||||
|    input logic              clk, reset, |    input logic              clk, reset, | ||||||
| @ -178,7 +178,7 @@ module bpred ( | |||||||
| 							(`C_SUPPORTED & (cjalr | cjr) & ((PostSpillInstrRawF[11:7] & 5'h1B) == 5'h01)); | 							(`C_SUPPORTED & (cjalr | cjr) & ((PostSpillInstrRawF[11:7] & 5'h1B) == 5'h01)); | ||||||
| 	 | 	 | ||||||
| 	assign InstrClassF[3] = ((PostSpillInstrRawF[6:0] & 7'h77) == 7'h67 & (PostSpillInstrRawF[11:07] & 5'h1B) == 5'h01) | // jal(r) must link to ra or x5
 | 	assign InstrClassF[3] = ((PostSpillInstrRawF[6:0] & 7'h77) == 7'h67 & (PostSpillInstrRawF[11:07] & 5'h1B) == 5'h01) | // jal(r) must link to ra or x5
 | ||||||
| 							(`C_SUPPORTED & (cjal | cjalr) & ((PostSpillInstrRawF[11:7] & 5'h1b) == 5'h01)); | 							(`C_SUPPORTED & (cjal | (cjalr & (PostSpillInstrRawF[11:7] & 5'h1b) == 5'h01))); | ||||||
| 	assign PredInstrClassF = InstrClassF; | 	assign PredInstrClassF = InstrClassF; | ||||||
| 	assign SelBPPredF = (PredInstrClassF[0] & DirPredictionF[1]) |  | 	assign SelBPPredF = (PredInstrClassF[0] & DirPredictionF[1]) |  | ||||||
| 						PredInstrClassF[2] | | 						PredInstrClassF[2] | | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user