Skip to content

Commit

Permalink
[icache] Disable S&P diffusion layer in memory scrambling
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Schaffner <msf@opentitan.org>
  • Loading branch information
msfschaffner committed Jan 19, 2024
1 parent 94a7446 commit 56413ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
9 changes: 2 additions & 7 deletions dv/uvm/icache/dv/tb/tb.sv
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ module tb #(
localparam int unsigned LineSizeECC = BusSizeECC * IC_LINE_BEATS;
localparam int unsigned TagSizeECC = ICacheECC ? (IC_TAG_SIZE + 6) : IC_TAG_SIZE;
localparam int unsigned NumAddrScrRounds = 2;
localparam int unsigned NumDiffRounds = NumAddrScrRounds;

ibex_icache_ram_if #(
.TagSizeECC(TagSizeECC),
Expand Down Expand Up @@ -137,9 +136,7 @@ module tb #(
.Depth (IC_NUM_LINES),
.DataBitsPerMask (TagSizeECC),
.EnableParity (0),
.DiffWidth (TagSizeECC),
.NumAddrScrRounds (NumAddrScrRounds),
.NumDiffRounds (NumDiffRounds)
.NumAddrScrRounds (NumAddrScrRounds)
) tag_bank (
.clk_i (clk),
.rst_ni (rst_n),
Expand Down Expand Up @@ -171,9 +168,7 @@ module tb #(
.DataBitsPerMask (LineSizeECC),
.EnableParity (0),
.ReplicateKeyStream (1),
.DiffWidth (LineSizeECC),
.NumAddrScrRounds (NumAddrScrRounds),
.NumDiffRounds (NumDiffRounds)
.NumAddrScrRounds (NumAddrScrRounds)
) data_bank (
.clk_i (clk),
.rst_ni (rst_n),
Expand Down
9 changes: 2 additions & 7 deletions rtl/ibex_top.sv
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ module ibex_top import ibex_pkg::*; #(
localparam int unsigned TagSizeECC = ICacheECC ? (IC_TAG_SIZE + 6) : IC_TAG_SIZE;
// Scrambling Parameter
localparam int unsigned NumAddrScrRounds = ICacheScramble ? 2 : 0;
localparam int unsigned NumDiffRounds = NumAddrScrRounds;

// Clock signals
logic clk;
Expand Down Expand Up @@ -565,9 +564,7 @@ module ibex_top import ibex_pkg::*; #(
.Depth (IC_NUM_LINES),
.DataBitsPerMask (TagSizeECC),
.EnableParity (0),
.DiffWidth (TagSizeECC),
.NumAddrScrRounds (NumAddrScrRounds),
.NumDiffRounds (NumDiffRounds)
.NumAddrScrRounds (NumAddrScrRounds)
) tag_bank (
.clk_i,
.rst_ni,
Expand Down Expand Up @@ -599,9 +596,7 @@ module ibex_top import ibex_pkg::*; #(
.DataBitsPerMask (LineSizeECC),
.ReplicateKeyStream (1),
.EnableParity (0),
.DiffWidth (LineSizeECC),
.NumAddrScrRounds (NumAddrScrRounds),
.NumDiffRounds (NumDiffRounds)
.NumAddrScrRounds (NumAddrScrRounds)
) data_bank (
.clk_i,
.rst_ni,
Expand Down

0 comments on commit 56413ec

Please sign in to comment.