Add support in the isolator to perform write operations on a signature
Signed-off-by: Caleb Palmer <cnpalmer@us.ibm.com>
Change-Id: Ia1f189a8ce7d1d71efc0ae81942151c31d63a4f5
diff --git a/test/simulator/simulator.cpp b/test/simulator/simulator.cpp
index 408d14a..b68ec80 100644
--- a/test/simulator/simulator.cpp
+++ b/test/simulator/simulator.cpp
@@ -15,6 +15,7 @@
{SAMPLE, "../test/simulator/sample_data/sample.cdb"},
{EXPLORER_11, "chip_data/chip_data_explorer_11.cdb"},
{EXPLORER_20, "chip_data/chip_data_explorer_20.cdb"},
+ {ODYSSEY_10, "chip_data/chip_data_odyssey_10.cdb"},
{P10_10, "chip_data/chip_data_p10_10.cdb"},
{P10_20, "chip_data/chip_data_p10_20.cdb"},
};
diff --git a/test/simulator/simulator.hpp b/test/simulator/simulator.hpp
index 4f81508..58b279a 100644
--- a/test/simulator/simulator.hpp
+++ b/test/simulator/simulator.hpp
@@ -46,6 +46,7 @@
SAMPLE = 0xdeadbeef,
EXPLORER_11 = 0x60d20011,
EXPLORER_20 = 0x60d20020,
+ ODYSSEY_10 = 0x60c00010,
P10_10 = 0x20da0010,
P10_20 = 0x20da0020,
};
diff --git a/test/simulator/testcases/meson.build b/test/simulator/testcases/meson.build
index 5d9e306..0e894cd 100644
--- a/test/simulator/testcases/meson.build
+++ b/test/simulator/testcases/meson.build
@@ -6,5 +6,6 @@
'exp20_tlx_err_rpt_1.cpp',
'omi_dl_fatal.cpp',
'tod_fault.cpp',
+ 'ody_mcbist2.cpp',
)
diff --git a/test/simulator/testcases/ody_mcbist2.cpp b/test/simulator/testcases/ody_mcbist2.cpp
new file mode 100644
index 0000000..7e0776f
--- /dev/null
+++ b/test/simulator/testcases/ody_mcbist2.cpp
@@ -0,0 +1,18 @@
+#include "simulator.hpp"
+
+START_TEST_CASE(ody_mcbist2)
+
+CHIP(ocmb0, ODYSSEY_10)
+
+START_ITERATION
+
+REG_SCOM(ocmb0, 0x570F001C, 0x0080000000000000) // GFIR_CS
+REG_SCOM(ocmb0, 0x08040000, 0x0200000000000000) // CFIR_MEM_CHIP_CS
+REG_SCOM(ocmb0, 0x08011400, 0x2000000000000000) // MCBIST_FIR
+REG_SCOM(ocmb0, 0x08011404, 0x2000000000000000) // MCBIST_FIR_CFG_CHIP_CS
+
+EXP_SIG(ocmb0, 0x8d4d, 0, 2, CHIP_CS)
+
+END_ITERATION
+
+END_TEST_CASE