OpenCores
URL https://opencores.org/ocsvn/zap/zap/trunk

Subversion Repositories zap

[/] [zap/] [trunk/] [src/] [rtl/] [cpu/] [zap_fetch_main.v] - Diff between revs 34 and 39

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 34 Rev 39
Line 75... Line 75...
 
 
// For BP.
// For BP.
input wire         i_confirm_from_alu,  // Confirm branch prediction from ALU.
input wire         i_confirm_from_alu,  // Confirm branch prediction from ALU.
input wire [31:0]  i_pc_from_alu,       // Address of branch. 
input wire [31:0]  i_pc_from_alu,       // Address of branch. 
input wire [1:0]   i_taken,             // Predicted status.
input wire [1:0]   i_taken,             // Predicted status.
output wire [1:0]  o_taken_ff           // Prediction.
output wire [1:0]  o_taken_ff           // Prediction. Not a flip-flop...
 
 
);
);
 
 
`include "zap_defines.vh"
`include "zap_defines.vh"
`include "zap_localparams.vh"
`include "zap_localparams.vh"
Line 89... Line 89...
wire _unused_ok_;
wire _unused_ok_;
 
 
// If an instruction abort occurs, this unit sleeps until it is woken up.
// If an instruction abort occurs, this unit sleeps until it is woken up.
reg sleep_ff;
reg sleep_ff;
 
 
 
// Taken_v
 
wire [1:0] taken_v;
 
 
 
// Predict non branches as not taken...
 
assign o_taken_ff = i_instruction[28:26] == 3'b101 ? taken_v : SNT;
 
 
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
 
 
//
//
// This is the instruction payload on an abort
// This is the instruction payload on an abort
// because no instruction is actually available on
// because no instruction is actually available on
Line 236... Line 242...
                        !i_stall_from_decode      &&
                        !i_stall_from_decode      &&
                        !i_stall_from_shifter
                        !i_stall_from_shifter
        ),
        ),
 
 
        // Send the read data over to o_taken_ff which is a 2-bit value.
        // Send the read data over to o_taken_ff which is a 2-bit value.
        .o_rd_data(o_taken_ff)
        .o_rd_data(taken_v)
);
);
 
 
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
 
 
//
//

powered by: WebSVN 2.1.0

© copyright 1999-2022 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.