I describe in py post in stackoverflow -with a short testcase- the following assignment of a 16 bit unsigned rxdata and a signed 12 bit bipolar:
this assignment fails at runtime with negative numbers in rxdata. (The checker assumes rxdata is unsigned and does not take into account the .signed() )
Maybe I need to use shadow Signals and .signed() to extract a signal bipolar (12 bit signed) from a unsigned Register rxdata (16 bit from a spi Transfer):
This makes the Simulation work – but unfortunately is not compiling and running in my fpga.
I’m sure there must be a ‘right’ way to do it. Can someone give me a hint?