amaranth icon indicating copy to clipboard operation
amaranth copied to clipboard

`DriverConflict` exception is unhelpful if you use `io.Buffer`

Open whitequark opened this issue 1 year ago • 2 comments

You get messages like:

amaranth.hdl._ir.DriverConflict: Bit 0 of I/O port (io-port port_a_5__io__io) used twice, at /home/whitequark/Projects/glasgow/software/.venv/lib/python3.12/site-packages/amaranth/vendor/_siliconblue.py:546 and /home/whitequark/Projects/glasgow/software/.venv/lib/python3.12/site-packages/amaranth/vendor/_siliconblue.py:546

It's not completely useless but 2/3 of the information says absolutely nothing.

cc @wanda-phi can we fix this?

whitequark avatar Jun 28 '24 22:06 whitequark

... you ever think we need a #[track_caller]?

wanda-phi avatar Jun 28 '24 22:06 wanda-phi

Prooooooobably.

whitequark avatar Jun 28 '24 22:06 whitequark