Skip to content

Commit 0d2d6bb

Browse files
[crypto] Increase OTBN DMEM/IMEM
Increase the size of the OTBN DMEM from 4 KiB to 32 KiB (32768 bytes) and the size of the IMEM from 8 KiB to 16 KiB (16384 bytes). Signed-off-by: Andrea Caforio <[email protected]>
1 parent a84d732 commit 0d2d6bb

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

hw/ip/otbn/data/otbn.hjson

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -748,14 +748,15 @@
748748
]
749749
}
750750

751-
// Give IMEM and DMEM 16 KiB address space, each, to allow for easy expansion
751+
// Give IMEM and DMEM 32 KiB address space, each, to allow for easy expansion
752752
// of the actual IMEM and DMEM sizes without changing the address map.
753-
{ skipto: "0x4000" }
753+
{ skipto: "0x8000" }
754754

755755
// Imem size (given as `items` below) must be a power of two.
756756
{ window: {
757757
name: "IMEM",
758-
items: "2048", // 8 kB
758+
// 16 KiB
759+
items: "4096",
759760
swaccess: "rw",
760761
data-intg-passthru: "true",
761762
byte-write: "false",
@@ -773,12 +774,14 @@
773774
}
774775
}
775776

776-
{ skipto: "0x8000" }
777+
{ skipto: "0x10000" }
777778

778779
// Dmem size (given as `items` below) must be a power of two.
779780
{ window: {
780781
name: "DMEM",
781-
items: "768", // 3 kB visible over the bus (1 kB scratch)
782+
// 32 KiB
783+
// TODO: Define division into .bss and .scratchpad sections.
784+
items: "8192",
782785
unusual: "true", // Needed to avoid an error because of the non-power-of-two size
783786
swaccess: "rw",
784787
data-intg-passthru: "true",

0 commit comments

Comments
 (0)