From 4e858199e5aa5d50706dafcdb3f8352c83352a0c Mon Sep 17 00:00:00 2001 From: Ross Thompson Date: Wed, 25 Jan 2023 18:51:09 -0600 Subject: [PATCH] Fixed typos. --- pipelined/src/ifu/brpred/bpred.sv | 6 +++--- pipelined/src/ifu/ifu.sv | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pipelined/src/ifu/brpred/bpred.sv b/pipelined/src/ifu/brpred/bpred.sv index d9f342db1..6803f65d4 100644 --- a/pipelined/src/ifu/brpred/bpred.sv +++ b/pipelined/src/ifu/brpred/bpred.sv @@ -197,8 +197,8 @@ module bpred ( assign BPPredWrongE = (PredictionPCWrongE & |InstrClassE) | BPPredClassNonCFIWrongE; // If we have a jump, jump register or jal or jalr and the PC is wrong we need to increment the performance counter. - assign BTBPredPCWrongE = (InstrClassE[3] | InstrClassE[1]) & PredictionPCWrongE; - // similar with RAS + assign BTBPredPCWrongE = (InstrClassE[3] | InstrClassE[1] | InstrClassE[0]) & PredictionPCWrongE; + // similar with RAS. Over counts ras if the class prediction was wrong. assign RASPredPCWrongE = InstrClassE[2] & PredictionPCWrongE; // Finally if the real instruction class is non CFI but the predictor said it was we need to count. assign BPPredClassNonCFIWrongE = PredictionInstrClassWrongE & ~|InstrClassE; @@ -223,7 +223,7 @@ module bpred ( // end // performance counters - // 1. class (class wrong / minstret) + // 1. class (class wrong / minstret) (PredictionInstrClassWrongM / csr) // 2. target btb (btb target wrong / class[0,1,3]) (btb target wrong / (br + j + jal) // 3. target ras (ras target wrong / class[2]) // 4. direction (br dir wrong / class[0]) diff --git a/pipelined/src/ifu/ifu.sv b/pipelined/src/ifu/ifu.sv index 476f666ff..f48727500 100644 --- a/pipelined/src/ifu/ifu.sv +++ b/pipelined/src/ifu/ifu.sv @@ -115,7 +115,7 @@ module ifu ( logic [31:0] NextInstrD, NextInstrE; // Instruction into the next stage after possible stage flush - logic CacheableF; // PMA indicates isntruction address is cacheable + logic CacheableF; // PMA indicates instruction address is cacheable logic SelNextSpillF; // In a spill, stall pipeline and gate local stallF logic BusStall; // Bus interface busy with multicycle operation logic ICacheStallF; // I$ busy with multicycle operation