lpc: Add a test-case.
authorUwe Hermann <uwe@hermann-uwe.de>
Tue, 1 Sep 2015 19:59:53 +0000 (21:59 +0200)
committerUwe Hermann <uwe@hermann-uwe.de>
Thu, 3 Sep 2015 14:15:08 +0000 (16:15 +0200)
decoder/test/lpc/lpc_vultureprog_snippet.output [new file with mode: 0644]
decoder/test/lpc/test.conf [new file with mode: 0644]

diff --git a/decoder/test/lpc/lpc_vultureprog_snippet.output b/decoder/test/lpc/lpc_vultureprog_snippet.output
new file mode 100644 (file)
index 0000000..69726a7
--- /dev/null
@@ -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 (file)
index 0000000..087da2f
--- /dev/null
@@ -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