[spi_device] This enables Byte parity for the memory macro
Signed-off-by: Michael Schaffner <msf@google.com>
diff --git a/hw/ip/spi_device/rtl/spi_device.sv b/hw/ip/spi_device/rtl/spi_device.sv
index f7f9ed1..57cb0c1 100644
--- a/hw/ip/spi_device/rtl/spi_device.sv
+++ b/hw/ip/spi_device/rtl/spi_device.sv
@@ -521,11 +521,11 @@
prim_ram_2p_adv #(
.Depth (512),
.Width (SramDw), // 32 x 512 --> 2kB
- .DataBitsPerMask (1),
+ .DataBitsPerMask (8),
.CfgW (8),
- .EnableECC (1),
- .EnableParity (0),
+ .EnableECC (0),
+ .EnableParity (1),
.EnableInputPipeline (0),
.EnableOutputPipeline(0)
) u_memory_2p (