lynxis / lpc_sniffer

a low pin count sniffer for icestick

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lpc sniffer decodes wrong data

lynxis opened this issue · comments

Board: apu3
fpga board: icestick

Using iob util from https://review.coreboot.org/#/c/21438/

root@LEDE:~# ./iob r 0x03fd 
read 03fd = 60

The sniffer decodes it correctly. So when doing one read, it shows only one read. But the
upper bit seems to bit unsure:

 io:  read 000003fd:   c0
 io:  read 000003fd:   c0
 io:  read 000003fd:   e0
 io:  read 000003fd:   c0
 io:  read 000003fd:   c0
 io:  read 000003fd:   e0
 io:  read 000003fd:   c0
 io:  read 000003fd:   c0
 io:  read 000003fd:   e0
 io:  read 000003fd:   e0
 io:  read 000003fd:   c0
 io:  read 000003fd:   c0
 io:  read 000003fd:   e0
 io:  read 000003fd:   c0
 io:  read 000003fd:   c0
 io:  read 000003fd:   e0
 io:  read 000003fd:   c0
 io:  read 000003fd:   c0
 io:  read 000003fd:   e0
 io:  read 000003fd:   c0
 io:  read 000003fd:   c0
 io:  read 000003fd:   e0
 io:  read 000003fd:   e0
 io:  read 000003fd:   c0
 io:  read 000003fd:   c0
 io:  read 000003fd:   e0
 io:  read 000003fd:   c0
 io:  read 000003fd:   c0
 io:  read 000003fd:   e0
 io:  read 000003fd:   c0
 io:  read 000003fd:   c0
 io:  read 000003fd:   e0
 io:  read 000003fd:   c0
 io:  read 000003fd:   c0
 io:  read 000003fd:   e0

could it be the sync word?

commented

I had this same problem, was resolved when I went to always @(posedge lpc_clock or negedge lpc_reset) begin in lpc.v