mirror of
https://github.com/pConst/basic_verilog.git
synced 2025-01-28 07:02:55 +08:00
Minor fix for read_ahead_buf
This commit is contained in:
parent
a9f7d50998
commit
65e4657650
@ -123,11 +123,8 @@ module read_ahead_buf #( parameter
|
||||
latch_req = ( fantom_read || normal_read ) ||
|
||||
( fifo_empty && r_req ); // buffer depletion
|
||||
|
||||
if( ( fantom_read || normal_read ) ||
|
||||
( fifo_empty && r_req ) ) begin
|
||||
if( latch_req ) begin
|
||||
r_data_latch[DATA_W-1:0] = fifo_r_data[DATA_W-1:0];
|
||||
//end else if( fifo_empty && r_req ) begin // buffer depletion
|
||||
// r_data_latch[DATA_W-1:0] = '0;
|
||||
end else begin
|
||||
r_data_latch[DATA_W-1:0] = '0;
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user