summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2017-05-03 22:27:51 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2017-05-05 20:09:01 +0200
commit7b5cb809723554b1e42603b50e44d1af5c9dc213 (patch)
treeb23691f4a0cdfff750b4598b1f1e7c55198223d9
parenta9781845af4a2c5fb4940474b9f0d04b16380323 (diff)
downloadsigrok-test-7b5cb809723554b1e42603b50e44d1af5c9dc213.tar.gz
sigrok-test-7b5cb809723554b1e42603b50e44d1af5c9dc213.zip
Add an eeprom93cxx test-case.
-rw-r--r--decoder/test/eeprom93cxx/st_m93c66.output19
-rw-r--r--decoder/test/eeprom93cxx/test.conf6
2 files changed, 25 insertions, 0 deletions
diff --git a/decoder/test/eeprom93cxx/st_m93c66.output b/decoder/test/eeprom93cxx/st_m93c66.output
new file mode 100644
index 0000000..2a05238
--- /dev/null
+++ b/decoder/test/eeprom93cxx/st_m93c66.output
@@ -0,0 +1,19 @@
+2530-2557 eeprom93cxx: si-data: "Read word" "READ"
+2557-2671 eeprom93cxx: si-data: "Address: 0x0" "Addr: 0x0" "0x0"
+2671-2908 eeprom93cxx: so-data: "Data: 0x4242" "0x4242"
+3301-3329 eeprom93cxx: si-data: "Read word" "READ"
+3329-3443 eeprom93cxx: si-data: "Address: 0x0" "Addr: 0x0" "0x0"
+3443-3678 eeprom93cxx: so-data: "Data: 0x4242" "0x4242"
+3678-3913 eeprom93cxx: so-data: "Data: 0x4242" "0x4242"
+3913-4148 eeprom93cxx: so-data: "Data: 0x4242" "0x4242"
+4148-4385 eeprom93cxx: so-data: "Data: 0x4242" "0x4242"
+4749-4889 eeprom93cxx: si-data: "Write enable" "WEN"
+5254-5281 eeprom93cxx: si-data: "Erase word" "ERASE"
+5281-5394 eeprom93cxx: si-data: "Address: 0x0" "Addr: 0x0" "0x0"
+11136-11277 eeprom93cxx: si-data: "Erase all memory" "Erase all" "ERAL"
+17132-17159 eeprom93cxx: si-data: "Write word" "WRITE"
+17159-17273 eeprom93cxx: si-data: "Address: 0x0" "Addr: 0x0" "0x0"
+17273-17492 eeprom93cxx: si-data: "Data: 0x4242" "0x4242"
+28751-28892 eeprom93cxx: si-data: "Write all memory" "Write all" "WRAL"
+28892-29112 eeprom93cxx: si-data: "Data: 0x4242" "0x4242"
+40469-40610 eeprom93cxx: si-data: "Write disable" "WDS"
diff --git a/decoder/test/eeprom93cxx/test.conf b/decoder/test/eeprom93cxx/test.conf
new file mode 100644
index 0000000..6fb11a9
--- /dev/null
+++ b/decoder/test/eeprom93cxx/test.conf
@@ -0,0 +1,6 @@
+test st_m93c66
+ protocol-decoder microwire channel cs=1 channel sk=3 channel si=4 channel so=5
+ protocol-decoder eeprom93cxx
+ stack microwire eeprom93cxx
+ input microwire/st_m93c66/st_m93c66.sr
+ output eeprom93cxx annotation match st_m93c66.output