summaryrefslogtreecommitdiff
path: root/decoder/test/lpc
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2015-09-01 21:59:53 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2015-09-03 16:15:08 +0200
commitdafde0f97e8efd42f797ee9dde8c82b2f6e3b9c8 (patch)
treeadb363c98a942c08b330a67581e817ea3ae14fb2 /decoder/test/lpc
parent593412c8e6750e3efe5bc5bc575f4222a441ac26 (diff)
downloadsigrok-test-dafde0f97e8efd42f797ee9dde8c82b2f6e3b9c8.tar.gz
sigrok-test-dafde0f97e8efd42f797ee9dde8c82b2f6e3b9c8.zip
lpc: Add a test-case.
Diffstat (limited to 'decoder/test/lpc')
-rw-r--r--decoder/test/lpc/lpc_vultureprog_snippet.output21
-rw-r--r--decoder/test/lpc/test.conf4
2 files changed, 25 insertions, 0 deletions
diff --git a/decoder/test/lpc/lpc_vultureprog_snippet.output b/decoder/test/lpc/lpc_vultureprog_snippet.output
new file mode 100644
index 0000000..69726a7
--- /dev/null
+++ b/decoder/test/lpc/lpc_vultureprog_snippet.output
@@ -0,0 +1,21 @@
+100979-100980 lpc: start: "Start of cycle for a target" "START" "St" "S"
+100980-100986 lpc: cycle-type: "Cycle type: Memory read"
+100986-101034 lpc: addr: "Address: 0xffbc0000"
+101034-101046 lpc: tar1: "TAR, cycle 0: 1111"
+101046-101049 lpc: tar1: "TAR, cycle 1: 0000"
+101049-101049 lpc: warnings: "TAR, cycle 1: 0000 (expected 1111)"
+101049-101070 lpc: sync: "SYNC, cycle 0: 0000"
+101070-101088 lpc: data: "DATA: 0xbf"
+101088-101099 lpc: tar2: "TAR, cycle 0: 1111"
+101099-101123 lpc: tar2: "TAR, cycle 1: 1111"
+101189-101190 lpc: start: "Start of cycle for a target" "START" "St" "S"
+101190-101196 lpc: cycle-type: "Cycle type: Memory read"
+101196-101244 lpc: addr: "Address: 0xffbc0001"
+101244-101256 lpc: tar1: "TAR, cycle 0: 1111"
+101256-101259 lpc: tar1: "TAR, cycle 1: 0000"
+101259-101259 lpc: warnings: "TAR, cycle 1: 0000 (expected 1111)"
+101259-101280 lpc: sync: "SYNC, cycle 0: 0000"
+101280-101298 lpc: data: "DATA: 0x1b"
+101298-101299 lpc: tar2: "TAR, cycle 0: 0101"
+101299-101299 lpc: warnings: "Warning: TAR, cycle 0: 0101 (expected 1111)"
+101299-101309 lpc: tar2: "TAR, cycle 1: 1111"
diff --git a/decoder/test/lpc/test.conf b/decoder/test/lpc/test.conf
new file mode 100644
index 0000000..087da2f
--- /dev/null
+++ b/decoder/test/lpc/test.conf
@@ -0,0 +1,4 @@
+test lpc_vultureprog_snippet
+ protocol-decoder lpc channel lad0=0 channel lad1=1 channel lad2=2 channel lad3=3 channel lclk=4 channel lframe=5
+ input lpc/vultureprog/lpc_vultureprog_snippet.sr
+ output lpc annotation match lpc_vultureprog_snippet.output