rvdffsc corrected
This commit is contained in:
parent
43402819b0
commit
43cddfd8b7
1820
axi4_to_ahb.fir
1820
axi4_to_ahb.fir
File diff suppressed because it is too large
Load Diff
834
axi4_to_ahb.v
834
axi4_to_ahb.v
File diff suppressed because it is too large
Load Diff
|
@ -388,7 +388,7 @@ trait lib extends param{
|
|||
def apply(din: UInt, en:Bool,clear: UInt, clk: Clock, clken: Bool,rawclk:Clock):UInt = {
|
||||
val dout =Wire(UInt())
|
||||
if (RV_FPGA_OPTIMIZE)
|
||||
dout := withClock (rawclk) {RegEnable ((din & Fill(clear.getWidth,!clear)) , 0.U, ((en|clear)& clken))}
|
||||
dout := withClock (rawclk) {RegEnable ((din & Fill(din.getWidth,!clear)), 0.U, ((en|clear)& clken))}
|
||||
else dout := withClock(clk) {RegNext (Mux(en,din,dout) & !clear, 0.U)}
|
||||
dout
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue