will127534 / IMU_Array

32x IMU array sensor board based on ICM-42688-P and ICE40UP5K
MIT License
228 stars 22 forks source link

Compiling the FPGA code #3

Closed altineller closed 2 months ago

altineller commented 2 months ago

Hello,

When I run the command 'iverilog -o test ./spi_slave.v ./spi_testbench.v' from run_testbench.sh, I get the following warnings regarding line 14:

./spi_testbench.v:14: warning: extra digits given for sized hex constant. ./spi_testbench.v:14: warning: Numeric constant truncated to 8 bits.

Line 14 is:

initial testdata = 8'h1275;

I undertsand that this is just a warning, but is this a typo, or is it running correctly, because it seems that the constant is truncated? Is it a typo maybe?

Best Regards, Can

will127534 commented 2 months ago

That is not used in the actual test, so should be fine.