tinyfpga / TinyFPGA-Bootloader

An open source USB bootloader for FPGAs
Apache License 2.0
357 stars 94 forks source link

win10_enumeration_test device descriptor doesn't match RTL #32

Closed terrillmoore closed 5 years ago

terrillmoore commented 5 years ago

cd tests && make spews errors in test case win10_enumeration+_test. Problem is that the VID/PID in the expected data don't match the value compiled into the RTL. Pull request will be submitted momentarily to fix this.

make[1]: Entering directory '/home/tmm/sandbox/TinyFPGA-Bootloader/tests/win10_enumeration_test'
iverilog -I.. -s top_tb -o test -c ../file_list.txt 
./test
VCD info: dumpfile test.vcd opened for output.
          1285581184 ERROR (top_tb.expect_usb_data): data mismatch. usb_tx_data != raw_usb_data
    actual:   0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f67401000000000061301d5020000002020001124b
    expected: 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b8a40100000000002100120920000002020001124b
LOCATION: test.v:         26
    test.v:         33
    test.v:         38
          2604826816 ERROR (top_tb.expect_usb_data): data mismatch. usb_tx_data != raw_usb_data
    actual:   0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f67401000000000061301d5020000002020001124b
    expected: 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b8a40100000000002100120920000002020001124b
    test.v:         58
    test.v:         92
    test.v:        109
          2767066432 ERROR (top_tb.expect_usb_data): data mismatch. usb_tx_data != raw_usb_data
    actual:   0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f67401000000000061301d5020000002020001124b
    expected: 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b8a40100000000002100120920000002020001124b
    test.v:        130
    test.v:        148
    test.v:        181
    test.v:        215
    test.v:        220
    test.v:        222
    test.v:        225
    test.v:        229
    test.v:        231
    test.v:        235
    test.v:        253
    test.v:        265
    test.v:        283
make[1]: Leaving directory '/home/tmm/sandbox/TinyFPGA-Bootloader/tests/win10_enumeration_test'