Add test for x2444m decoder.
authorStefan Petersen <spe@ciellt.se>
Tue, 6 Nov 2018 19:31:52 +0000 (20:31 +0100)
committerUwe Hermann <uwe@hermann-uwe.de>
Sat, 10 Nov 2018 17:43:43 +0000 (18:43 +0100)
decoder/test/x2444m/test.conf [new file with mode: 0644]
decoder/test/x2444m/x2444m.output [new file with mode: 0644]

diff --git a/decoder/test/x2444m/test.conf b/decoder/test/x2444m/test.conf
new file mode 100644 (file)
index 0000000..72df3ce
--- /dev/null
@@ -0,0 +1,7 @@
+test x2444m
+       protocol-decoder spi channel clk=0 channel mosi=1 channel miso=2 channel cs=3 option cs_polarity=active-high 
+       protocol-decoder x2444m
+       protocol-decoder spi
+       stack spi x2444m
+       input spi/x2444m/x2444m.sr
+       output x2444m annotation match x2444m.output
diff --git a/decoder/test/x2444m/x2444m.output b/decoder/test/x2444m/x2444m.output
new file mode 100644 (file)
index 0000000..f6ea494
--- /dev/null
@@ -0,0 +1,37 @@
+114-1590 x2444m: write: "RCL"
+2091-3567 x2444m: write: "WREN"
+4077-8677 x2444m: write: "WRITE: 0x0 => 0xabcd"
+9187-13787 x2444m: write: "WRITE: 0x1 => 0x1234"
+14301-18901 x2444m: write: "WRITE: 0x2 => 0xabcd"
+19411-24011 x2444m: write: "WRITE: 0x3 => 0x1234"
+24525-29125 x2444m: write: "WRITE: 0x4 => 0xabcd"
+29635-34235 x2444m: write: "WRITE: 0x5 => 0x1234"
+34750-39350 x2444m: write: "WRITE: 0x6 => 0xabcd"
+39860-44460 x2444m: write: "WRITE: 0x7 => 0x1234"
+44974-49574 x2444m: write: "WRITE: 0x8 => 0xabcd"
+50084-54684 x2444m: write: "WRITE: 0x9 => 0x1234"
+55198-59798 x2444m: write: "WRITE: 0xa => 0xabcd"
+60308-64908 x2444m: write: "WRITE: 0xb => 0x1234"
+65423-70023 x2444m: write: "WRITE: 0xc => 0xabcd"
+70532-75132 x2444m: write: "WRITE: 0xd => 0x1234"
+75647-80247 x2444m: write: "WRITE: 0xe => 0xabcd"
+80757-85357 x2444m: write: "WRITE: 0xf => 0x1234"
+85862-87338 x2444m: write: "STO"
+376039-377515 x2444m: write: "RCL"
+378016-379492 x2444m: write: "WREN"
+379976-384574 x2444m: write: "READ: 0x0 => 0xabcd"
+385063-389662 x2444m: write: "READ: 0x1 => 0x1234"
+390158-394757 x2444m: write: "READ: 0x2 => 0xabcd"
+395246-399844 x2444m: write: "READ: 0x3 => 0x1234"
+400341-404939 x2444m: write: "READ: 0x4 => 0xabcd"
+405428-410027 x2444m: write: "READ: 0x5 => 0x1234"
+410523-415122 x2444m: write: "READ: 0x6 => 0xabcd"
+415611-420209 x2444m: write: "READ: 0x7 => 0x1234"
+420706-425304 x2444m: write: "READ: 0x8 => 0xabcd"
+425793-430392 x2444m: write: "READ: 0x9 => 0x1234"
+430888-435486 x2444m: write: "READ: 0xa => 0xabcd"
+435975-440574 x2444m: write: "READ: 0xb => 0x1234"
+441070-445669 x2444m: write: "READ: 0xc => 0xabcd"
+446158-450756 x2444m: write: "READ: 0xd => 0x1234"
+451253-455851 x2444m: write: "READ: 0xe => 0xabcd"
+456340-460939 x2444m: write: "READ: 0xf => 0x1234"