rvdffe registers updated
This commit is contained in:
parent
bb89af4b68
commit
e1c566dae9
1066
lsu_bus_buffer.fir
1066
lsu_bus_buffer.fir
File diff suppressed because it is too large
Load Diff
1328
lsu_bus_buffer.v
1328
lsu_bus_buffer.v
File diff suppressed because it is too large
Load Diff
|
@ -392,6 +392,9 @@ trait lib extends param{
|
|||
obj.io.clk := clk
|
||||
obj.io.en := en
|
||||
obj.io.scan_mode := 0.U
|
||||
if(RV_FPGA_OPTIMIZE)
|
||||
withClock(clk){RegEnable(din,0.U,en)}
|
||||
else
|
||||
withClock(l1clk) {
|
||||
RegNext(din, 0.U)
|
||||
}
|
||||
|
|
|
@ -527,7 +527,6 @@ class lsu_bus_buffer extends Module with RequireAsyncReset with lib {
|
|||
buf_byteen := (0 until DEPTH).map(i=>withClock(io.lsu_bus_buf_c1_clk){RegEnable(buf_byteen_in(i), 0.U, buf_wr_en(i).asBool())})
|
||||
buf_data := (0 until DEPTH).map(i=>rvdffe(buf_data_in(i), buf_data_en(i), clock, io.scan_mode))
|
||||
buf_error := (0 until DEPTH).map(i=>(withClock(io.lsu_bus_buf_c1_clk){RegNext(Mux(buf_error_en(i), true.B, buf_error(i)) & !buf_rst(i), false.B)}).asUInt()).reverse.reduce(Cat(_,_))
|
||||
|
||||
val buf_numvld_any = (Mux(io.ldst_dual_m, Cat(io.lsu_busreq_m, 0.U),io.lsu_busreq_m) +& Mux(io.ldst_dual_r, Cat(io.lsu_busreq_r, 0.U),io.lsu_busreq_r) +& ibuf_valid) + buf_state.map(i=>(i=/=idle_C).asUInt).reduce(_+&_)
|
||||
buf_numvld_wrcmd_any := (0 until DEPTH).map(i=>(buf_write(i) & (buf_state(i)===cmd_C) & !buf_cmd_state_bus_en(i)).asUInt).reverse.reduce(_ +& _)
|
||||
buf_numvld_cmd_any := (0 until DEPTH).map(i=>((buf_state(i)===cmd_C) & !buf_cmd_state_bus_en(i)).asUInt).reverse.reduce(_ +& _)
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue