bus buffer with reg_fpga updated
This commit is contained in:
parent
c438fae14a
commit
17fe416e15
7299
lsu_bus_buffer.fir
7299
lsu_bus_buffer.fir
File diff suppressed because it is too large
Load Diff
3625
lsu_bus_buffer.v
3625
lsu_bus_buffer.v
File diff suppressed because it is too large
Load Diff
|
@ -370,18 +370,19 @@ trait lib extends param{
|
||||||
in_range := (addr(31,MASK_BITS) === start_addr(31,MASK_BITS)).asUInt
|
in_range := (addr(31,MASK_BITS) === start_addr(31,MASK_BITS)).asUInt
|
||||||
(in_range,in_region)
|
(in_range,in_region)
|
||||||
}
|
}
|
||||||
|
|
||||||
object rvdff_fpga {
|
object rvdff_fpga {
|
||||||
def apply(din: UInt, clk: Clock, clken: Bool,rawclk:Clock):UInt = {
|
def apply(din: UInt, clk: Clock, clken: Bool,rawclk:Clock):UInt = {
|
||||||
if (RV_FPGA_OPTIMIZE)
|
if (RV_FPGA_OPTIMIZE)
|
||||||
withClock (clk) {RegEnable (din, 0.U, clken)}
|
withClock(rawclk) {RegEnable (din, 0.U, clken)}
|
||||||
else withClock(clk){RegNext (din, 0.U)}
|
else RegNext (din, 0.U)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
object rvdffs_fpga {
|
object rvdffs_fpga {
|
||||||
def apply(din: UInt, en:Bool,clk: Clock, clken: Bool,rawclk:Clock):UInt = {
|
def apply(din: UInt, en:Bool,clk: Clock, clken: Bool,rawclk:Clock):UInt = {
|
||||||
if (RV_FPGA_OPTIMIZE)
|
if (RV_FPGA_OPTIMIZE)
|
||||||
withClock (clk) {RegEnable (din, 0.U, clken & en)}
|
withClock (rawclk) {RegEnable (din, 0.U, (clken & en))}
|
||||||
else withClock (clk) {RegEnable (din, 0.U,en)}
|
else RegEnable (din, 0.U,en)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
////rvdffe ///////////////////////////////////////////////////////////////////////
|
////rvdffe ///////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -155,5 +155,5 @@ trait param {
|
||||||
val SB_BUS_PRTY = 0x2
|
val SB_BUS_PRTY = 0x2
|
||||||
val SB_BUS_TAG = 0x1
|
val SB_BUS_TAG = 0x1
|
||||||
val TIMER_LEGAL_EN = 0x1
|
val TIMER_LEGAL_EN = 0x1
|
||||||
val RV_FPGA_OPTIMIZE = 0x0
|
val RV_FPGA_OPTIMIZE = 0x1
|
||||||
}
|
}
|
||||||
|
|
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