forked from Github_Repos/cvw
		
	Simplified gshare.
This commit is contained in:
		
							parent
							
								
									0eceeeeeaa
								
							
						
					
					
						commit
						14ebf2360d
					
				@ -140,8 +140,7 @@
 | 
				
			|||||||
`define PLIC_UART_ID 10
 | 
					`define PLIC_UART_ID 10
 | 
				
			||||||
 | 
					
 | 
				
			||||||
`define BPRED_ENABLED 1
 | 
					`define BPRED_ENABLED 1
 | 
				
			||||||
//`define BPTYPE "BPGSHARE" // BPLOCALPAg or BPGLOBAL or BPTWOBIT or BPGSHARE
 | 
					`define BPTYPE "BPGSHARE" // BPLOCALPAg or BPGLOBAL or BPTWOBIT or BPGSHARE
 | 
				
			||||||
`define BPTYPE "BPGLOBAL" // BPLOCALPAg or BPGLOBAL or BPTWOBIT or BPGSHARE
 | 
					 | 
				
			||||||
`define TESTSBP 0
 | 
					`define TESTSBP 0
 | 
				
			||||||
`define BPRED_SIZE 10
 | 
					`define BPRED_SIZE 10
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -101,10 +101,9 @@ module bpred (
 | 
				
			|||||||
      .BranchInstrE(InstrClassE[0]), .BranchInstrM(InstrClassM[0]), .PCSrcE);
 | 
					      .BranchInstrE(InstrClassE[0]), .BranchInstrM(InstrClassM[0]), .PCSrcE);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  end else if (`BPTYPE == "BPGSHARE") begin:Predictor
 | 
					  end else if (`BPTYPE == "BPGSHARE") begin:Predictor
 | 
				
			||||||
    gsharePredictor DirPredictor(.clk, .reset, .StallF, .StallE,
 | 
					    gshare DirPredictor(.clk, .reset, .StallF, .StallD, .StallE, .StallM, .FlushD, .FlushE, .FlushM,
 | 
				
			||||||
      .PCNextF, .BPPredF,
 | 
					      .PCNextF, .PCM, .DirPredictionF(BPPredF), .DirPredictionWrongE(BPPredDirWrongE),
 | 
				
			||||||
      .InstrClassE, .BPInstrClassF, .BPInstrClassD, .BPInstrClassE, .BPPredDirWrongE,
 | 
					      .BranchInstrE(InstrClassE[0]), .BranchInstrM(InstrClassM[0]), .PCSrcE);
 | 
				
			||||||
      .PCE, .PCSrcE, .UpdateBPPredE);
 | 
					 | 
				
			||||||
  end 
 | 
					  end 
 | 
				
			||||||
  else if (`BPTYPE == "BPLOCALPAg") begin:Predictor
 | 
					  else if (`BPTYPE == "BPLOCALPAg") begin:Predictor
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user