Skip to content

Commit baaa0b9

Browse files
committed
[keymgr_dpe,data] Expose the new FlopToKmac parameter in the hjson
Signed-off-by: Rupert Swarbrick <rswarbrick@lowrisc.org>
1 parent d428687 commit baaa0b9

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

hw/ip/keymgr_dpe/data/keymgr_dpe.hjson

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,16 @@
125125
local: "false",
126126
expose: "true",
127127
}
128+
{ name: "FlopToKmac",
129+
desc: '''
130+
If true, insert flops to break a potential long chain between
131+
the active key slot and KMAC.
132+
''',
133+
type: "bit",
134+
default: "0",
135+
local: "false",
136+
expose: "true",
137+
}
128138
// Random netlist constants
129139
{ name: "RndCnstLfsrSeed",
130140
desc: "Compile-time random bits for initial LFSR seed",

hw/top_darjeeling/data/autogen/top_darjeeling.gen.hjson

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6122,6 +6122,19 @@
61226122
expose: "true"
61236123
name_top: KeymgrDpeKmacEnMasking
61246124
}
6125+
{
6126+
name: FlopToKmac
6127+
desc:
6128+
'''
6129+
If true, insert flops to break a potential long chain between
6130+
the active key slot and KMAC.
6131+
'''
6132+
type: bit
6133+
default: "0"
6134+
local: "false"
6135+
expose: "true"
6136+
name_top: KeymgrDpeFlopToKmac
6137+
}
61256138
{
61266139
name: RndCnstLfsrSeed
61276140
desc: Compile-time random bits for initial LFSR seed

hw/top_darjeeling/rtl/autogen/top_darjeeling.sv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ module top_darjeeling #(
8585
parameter bit SecOtbnSkipUrndReseedAtStart = 0,
8686
// parameters for keymgr_dpe
8787
parameter bit KeymgrDpeKmacEnMasking = 1,
88+
parameter bit KeymgrDpeFlopToKmac = 0,
8889
// parameters for csrng
8990
parameter aes_pkg::sbox_impl_e CsrngSBoxImpl = aes_pkg::SBoxImplCanright,
9091
// parameters for entropy_src
@@ -1995,6 +1996,7 @@ module top_darjeeling #(
19951996
.AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[61:60]),
19961997
.AlertSkewCycles(top_pkg::AlertSkewCycles),
19971998
.KmacEnMasking(KeymgrDpeKmacEnMasking),
1999+
.FlopToKmac(KeymgrDpeFlopToKmac),
19982000
.RndCnstLfsrSeed(RndCnstKeymgrDpeLfsrSeed),
19992001
.RndCnstLfsrPerm(RndCnstKeymgrDpeLfsrPerm),
20002002
.RndCnstRandPerm(RndCnstKeymgrDpeRandPerm),

0 commit comments

Comments
 (0)