Open tarik-ibrahimovic opened 3 months ago
@pu-cc , is there anything you still need from Tarik to address this problem?
@pu-cc is the plan to get us this fix in the upcoming tool update?
I was having problems running the PSRAM example on my Olimex board even though @tarik-ibrahimovic had no problems with the exact same code. When running the pyauto.py
script in 4.testing
folder I get an ERROR
that says that what is written doesn't match what is read or sometimes nothing is happening after establishing a succesfull connection to /dev/ttyACM0
.
After flipping the send
and tick_02us
pins in the constraint file from:
Pin_out "sent" Loc = "IO_NB_A1";
Pin_out "tick_02us" Loc = "IO_NB_A2";
To:
Pin_out "sent" Loc = "IO_NB_A2";
Pin_out "tick_02us" Loc = "IO_NB_A1";
While, thanks to this random change that I cannot see an engineering explanation for, the PSRAM example now works as designed, the main issue is still there. Moreover, it now begs a question in even louder voice:
What is going under the hood, at both silicon and tool level, that is causing these bizarre behaviors?
uart_tx
changes with a change in declared IO ports of the moduleIn this design, when declaring
logic tick_02us
in the1.hw/top.sv
as an IO port everything functions correctly (tick_02us
is not intended to be real IO, but in cases was used as means to debug).However, if removed as an IO port, and left just as an internal signal, the
uart_tx
starts misbehaving. Also, the output duplicate ofuart_tx
,sent
, becomes incorrect. This isn't present in post-PnR sim which seems fine. Important note: Whentick_02us
is mapped to a location like "IO_NB_A0" it still misbehaves, but if mapped to "IO_NB_A2" like in the repo the design works just fine.Steps to recreate the issue
These instructions are for the Olimex board:
tick_02us
from1.hw/top.sv
and uncomment the declaration left belowlogic tick_02us
tick_02us
port from1.hw/constraints/constraints.ccf
tick_02us
port from2.sim/tb.sv
to run the simulations correctlymake
thenmake all_impl
4.testing/pyauto.py
script which communicates via SerialIO_NB_A1
pin and notice thatsent
which is a duplicate ofuart_tx
is also incorrect and doesn't match post-PnR sim.