Fixed a few lint errors,

clock gater was wrong,
missing signal definitions in branch predictor.
This commit is contained in:
Ross Thompson 2021-06-02 09:33:24 -05:00
parent a683dd7fde
commit e50a1ef5e4
4 changed files with 9 additions and 3 deletions

View File

@ -237,7 +237,7 @@ module fpu (
logic fpdivClk;
clockgater fpdivclkg(.E(FDivStartE),
.SE(DivBusyM),
.SE(1'b0),
.CLK(clk),
.ECLK(fpdivClk));

View File

@ -38,8 +38,10 @@ module clockgater
logic enable_q;
always @(~CLK) begin
enable_q <= E | SE;
always_latch begin
if(~CLK) begin
enable_q <= E | SE;
end
end
assign ECLK = enable_q & CLK;

View File

@ -53,6 +53,8 @@ module globalHistoryPredictor
logic BPClassWrongNonCFI;
logic BPClassWrongCFI;
logic BPClassRightNonCFI;
logic BPClassRightBPWrong;
logic BPClassRightBPRight;
logic [6:0] GHRMuxSel;
logic GHRUpdateEN;

View File

@ -53,6 +53,8 @@ module gsharePredictor
logic BPClassWrongNonCFI;
logic BPClassWrongCFI;
logic BPClassRightNonCFI;
logic BPClassRightBPWrong;
logic BPClassRightBPRight;
logic [6:0] GHRMuxSel;
logic GHRUpdateEN;