ibm2030 / SimpleSDHC

A basic SD Card SPI interface in VHDL, supports SD V1, V2 and SDHC
22 stars 10 forks source link

Errors in testbench #8

Open jimga150 opened 4 years ago

jimga150 commented 4 years ago

When running the testbench given, i get this output:

Finished circuit initialization process. at 2095010 ns: Note: Starting Read 1 at byte_counter=81 (/testbench_sd_spi/). at 4862790 ns: Note: Starting Read 2 at byte_counter=608 (/testbench_sd_spi/). at 5031970 ns: Note: Starting Read 3 at byte_counter=1133 (/testbench_sd_spi/). at 7502230 ns(3): Error: Receive at byte 1675: Expected 01001100 received 11111111 at 7502550 ns(3): Error: Receive at byte 1676: Expected 00000000 received 11111111 at 7502870 ns(3): Error: Receive at byte 1677: Expected 00000000 received 11111111 at 7503190 ns(3): Error: Receive at byte 1678: Expected 00000000 received 11111111 at 7503510 ns(3): Error: Receive at byte 1679: Expected 00000000 received 11111111 at 7503830 ns(3): Error: Receive at byte 1680: Expected 01100001 received 11111111 at 7509270 ns(3): Error: Receive at byte 1697: Expected 01010010 received 11111111 at 7509590 ns(3): Error: Receive at byte 1698: Expected 00000000 received 11111111 at 7509910 ns(3): Error: Receive at byte 1699: Expected 00000000 received 11111111 at 7510230 ns(3): Error: Receive at byte 1700: Expected 00000000 received 11111111 at 7510550 ns(3): Error: Receive at byte 1701: Expected 00000000 received 11111111 at 7510870 ns(3): Error: Receive at byte 1702: Expected 11100001 received 11111111 at 10579870 ns(3): Error: Receive at byte 2225: Expected 01001100 received 11111111 at 11017170 ns(3): Error: Receive at byte 2226: Expected 00000000 received 11111111 at 11038010 ns(3): Error: Receive at byte 2227: Expected 00000000 received 01000000 at 11100470 ns(3): Error: Receive at byte 2230: Expected 01100001 received 00000000 at 12224990 ns(3): Error: Receive at byte 2244: Expected 01110111 received 00000000 at 12308290 ns(3): Error: Receive at byte 2248: Expected 00000000 received 10010101 at 12329110 ns(3): Error: Receive at byte 2249: Expected 01100101 received 11111111 at 12828890 ns(3): Error: Receive at byte 2253: Expected 01010111 received 01000000 at 12912170 ns(3): Error: Receive at byte 2257: Expected 00000001 received 00000000 at 12933010 ns(3): Error: Receive at byte 2258: Expected 00111101 received 10010101 at 13432790 ns(3): Error: Receive at byte 2262: Expected 01011000 received 01000000 at 13536910 ns(3): Error: Receive at byte 2267: Expected 01101111 received 10010101 at 14036670 ns(3): Error: Receive at byte 2271: Expected 11111110 received 11111111 at 14057510 ns(3): Error: Receive at byte 2272: Expected 00000000 received 01000000 at 14078330 ns(3): Error: Receive at byte 2273: Expected 00000001 received 00000000 at 14099150 ns(3): Error: Receive at byte 2274: Expected 00000010 received 00000000 at 14119970 ns(3): Error: Receive at byte 2275: Expected 00000011 received 00000000 at 14140790 ns(3): Error: Receive at byte 2276: Expected 00000100 received 00000000 at 14161630 ns(3): Error: Receive at byte 2277: Expected 00000101 received 10010101 at 14182450 ns(3): Error: Receive at byte 2278: Expected 00000110 received 11111111 at 14203270 ns(3): Error: Receive at byte 2279: Expected 00000111 received 11111111 at 14224090 ns(3): Error: Receive at byte 2280: Expected 00001000 received 11111111 at 14244910 ns(3): Error: Receive at byte 2281: Expected 00001001 received 11111111 at 14265730 ns(3): Error: Receive at byte 2282: Expected 00001010 received 11111111 at 14286550 ns(3): Error: Receive at byte 2283: Expected 00001011 received 11111111 at 14307370 ns(3): Error: Receive at byte 2284: Expected 00001100 received 11111111 at 14328190 ns(3): Error: Receive at byte 2285: Expected 00001101 received 11111111 at 14349010 ns(3): Error: Receive at byte 2286: Expected 00001110 received 11111111 at 14369830 ns(3): Error: Receive at byte 2287: Expected 00001111 received 11111111 Stopped at time : 32039070 ns

I'm trying to understand the test bench, and i'll continue to do so, but i thought i might ask here in case the dev has an answer for me. Thanks!

AnoushkaU commented 4 years ago

Hello, I am getting the same error. Did you figure out what the problem was?

ibm2030 commented 4 years ago

Hello, sorry for the delay. For both of you - which VHDL system are you using (ISE/Vivado/something else) and are you using the code exactly as here? I will try to replicate the problem.

AnoushkaU commented 4 years ago

Hello, sorry for the delay. For both of you - which VHDL system are you using (ISE/Vivado/something else) and are you using the code exactly as here? I will try to replicate the problem.

Hello! I was trying it on Xilinx ISE Design Suite.

jimga150 commented 4 years ago

Same here. I'm using 14.7, with the code unchanged.