mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Fix FSM bug
This commit is contained in:
parent
a91dcd8372
commit
dcff039096
@ -207,6 +207,7 @@ module dm import cvw::*; #(parameter cvw_t P) (
|
||||
if (rst) begin
|
||||
DmActive <= 0;
|
||||
State <= INACTIVE;
|
||||
NewAcState <= AC_IDLE;
|
||||
end else begin
|
||||
case (State)
|
||||
default : begin // INACTIVE
|
||||
@ -447,7 +448,10 @@ module dm import cvw::*; #(parameter cvw_t P) (
|
||||
Cycle <= Cycle + 1;
|
||||
end
|
||||
|
||||
default:;
|
||||
default : begin
|
||||
AcState <= AC_IDLE;
|
||||
Cycle <= Cycle;
|
||||
end
|
||||
endcase
|
||||
end
|
||||
end
|
||||
|
@ -211,6 +211,7 @@ module fpu import cvw::*; #(parameter cvw_t P) (
|
||||
assign FResultWM = DebugSel ? DebugFPRWriteD : FResultW;
|
||||
flopenrs #(P.FLEN) FPScanReg(.clk, .reset, .en(DebugCapture), .d(FRD1D), .q(DebugFPRWriteD), .scan(DebugScanEn), .scanin(DebugScanIn), .scanout(DebugScanOut));
|
||||
end else begin
|
||||
assign DebugScanOut = '0;
|
||||
fregfile #(P.FLEN) fregfile (.clk, .reset, .we4(FRegWriteW),
|
||||
.a1(InstrD[19:15]), .a2(InstrD[24:20]), .a3(InstrD[31:27]),
|
||||
.a4(RdW), .wd4(FResultW),
|
||||
|
Loading…
Reference in New Issue
Block a user