[icache] Disable S&P diffusion layer in memory scrambling

Signed-off-by: Michael Schaffner <msf@opentitan.org>
This commit is contained in:
Michael Schaffner 2024-01-17 16:13:28 -08:00
parent 94a7446277
commit 56413ecf10
2 changed files with 4 additions and 14 deletions

View file

@ -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),
@ -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),
@ -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),

View file

@ -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;
@ -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,
@ -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,