mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-23 21:57:11 -04:00
Add some more comments on the if busy signal
This commit is contained in:
parent
228a964b83
commit
e80b846d03
1 changed files with 8 additions and 1 deletions
|
@ -62,7 +62,14 @@ module if_stage (
|
|||
logic pop_empty; // pop the address queue in case of a flush, empty signal
|
||||
// Address queue status signals
|
||||
logic empty, full, single_element;
|
||||
// we are busy if we are either waiting for a grant or if the FIFO is full
|
||||
|
||||
// We are busy if:
|
||||
// 1. we are either waiting for a grant
|
||||
// 2. or if the FIFO is full
|
||||
// 3. We are waiting for the current request to be aborted e.g.: we are waiting for the address queue to be empty
|
||||
// 4. the address queue is full (then we can handle any transaction anymore which we will commit to the memory hierarchy)
|
||||
// And all this is not true if we just flushed. That is the case that we unconditionally have to take the new PC on a flush
|
||||
// as the PC Gen stage is expecting this.
|
||||
assign if_busy_o = ((CS == WAIT_GNT) || !fifo_ready || (CS == WAIT_ABORTED_REQUEST) || full) && (CS != WAIT_ABORTED);
|
||||
assign fetch_address = {fetch_address_i[63:2], 2'b0};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue