rvdffsc corrected

This commit is contained in:
​Laraib Khan 2021-01-14 12:36:40 +05:00
parent 43402819b0
commit 43cddfd8b7
4 changed files with 1329 additions and 1327 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -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
}