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
|
if (rst) begin
|
||||||
DmActive <= 0;
|
DmActive <= 0;
|
||||||
State <= INACTIVE;
|
State <= INACTIVE;
|
||||||
|
NewAcState <= AC_IDLE;
|
||||||
end else begin
|
end else begin
|
||||||
case (State)
|
case (State)
|
||||||
default : begin // INACTIVE
|
default : begin // INACTIVE
|
||||||
@ -447,7 +448,10 @@ module dm import cvw::*; #(parameter cvw_t P) (
|
|||||||
Cycle <= Cycle + 1;
|
Cycle <= Cycle + 1;
|
||||||
end
|
end
|
||||||
|
|
||||||
default:;
|
default : begin
|
||||||
|
AcState <= AC_IDLE;
|
||||||
|
Cycle <= Cycle;
|
||||||
|
end
|
||||||
endcase
|
endcase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -211,6 +211,7 @@ module fpu import cvw::*; #(parameter cvw_t P) (
|
|||||||
assign FResultWM = DebugSel ? DebugFPRWriteD : FResultW;
|
assign FResultWM = DebugSel ? DebugFPRWriteD : FResultW;
|
||||||
flopenrs #(P.FLEN) FPScanReg(.clk, .reset, .en(DebugCapture), .d(FRD1D), .q(DebugFPRWriteD), .scan(DebugScanEn), .scanin(DebugScanIn), .scanout(DebugScanOut));
|
flopenrs #(P.FLEN) FPScanReg(.clk, .reset, .en(DebugCapture), .d(FRD1D), .q(DebugFPRWriteD), .scan(DebugScanEn), .scanin(DebugScanIn), .scanout(DebugScanOut));
|
||||||
end else begin
|
end else begin
|
||||||
|
assign DebugScanOut = '0;
|
||||||
fregfile #(P.FLEN) fregfile (.clk, .reset, .we4(FRegWriteW),
|
fregfile #(P.FLEN) fregfile (.clk, .reset, .we4(FRegWriteW),
|
||||||
.a1(InstrD[19:15]), .a2(InstrD[24:20]), .a3(InstrD[31:27]),
|
.a1(InstrD[19:15]), .a2(InstrD[24:20]), .a3(InstrD[31:27]),
|
||||||
.a4(RdW), .wd4(FResultW),
|
.a4(RdW), .wd4(FResultW),
|
||||||
|
Loading…
Reference in New Issue
Block a user