[Libre-soc-bugs] [Bug 50] nmigen pinmux
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Mon Dec 6 19:33:33 GMT 2021
https://bugs.libre-soc.org/show_bug.cgi?id=50
--- Comment #71 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to andrey from comment #70)
> While the UART equivalent
> Printing top.jtag.boundary_scan_pads['uart_0__rx__i']
> {}
that doesn't exist (if it does, the only reason it will be "accessible"
is because top.jtag.boundary_scan_pads is a defaultdict(dict).
which auto-creates a dict *on-demand* when a lookup does not exist
fixed:
def test_uart():
# grab the JTAG resource pad
- uart_pad = top.jtag.resource_table_pads[('uart', 0)]
- #uart_rx_pad = top.jtag.boundary_scan_pads['uart_0__rx__i']['i']
+ print ()
+ print ("bs pad keys", top.jtag.boundary_scan_pads.keys())
+ print ()
+ uart_rx_pad = top.jtag.boundary_scan_pads['uart_0__rx']['i']
+ uart_tx_pad = top.jtag.boundary_scan_pads['uart_0__tx']['o']
you could have found the correct name with
print ("bs pad keys", top.jtag.boundary_scan_pads.keys())
> Also, UART and I2C basic tests have been implemented.
fantastic.
> So once we resolve the little UART issue, what comes next?
flipping the boundary scan bits, as is done in test_jtag_tap_srv.py
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list