Forum Discussion
Altera_Forum
Honored Contributor
8 years agoModelSim Intel FPGA Starter edition 10.5b fails to simulate due to mem alloc fail
Just fired up ModelSim FPGA Starter edition 10.5b and tried to simulate the simplest of models to get a feel for the tool. The testbench contains a file reader pushing test vectors into a DUT stub. G...
Altera_Forum
Honored Contributor
8 years agohere is a test vector file: everything after the | is for human inspection, it isn't used by the testbench.
5 0 posit<5,0> 1 00000 00000 00000 | 0 + 0 == 0 2 00000 00001 00001 | 0 + 0.125 == 0.125 3 00000 00010 00010 | 0 + 0.25 == 0.25 4 00000 00011 00011 | 0 + 0.375 == 0.375 5 00000 00100 00100 | 0 + 0.5 == 0.5 6 00000 00101 00101 | 0 + 0.625 == 0.625 7 00000 00110 00110 | 0 + 0.75 == 0.75 8 00000 00111 00111 | 0 + 0.875 == 0.875 9 00000 01000 01000 | 0 + 1 == 1 10 00000 01001 01001 | 0 + 1.25 == 1.25 11 00000 01010 01010 | 0 + 1.5 == 1.5 12 00000 01011 01011 | 0 + 1.75 == 1.75 13 00000 01100 01100 | 0 + 2 == 2 14 00000 01101 01101 | 0 + 3 == 3 15 00000 01110 01110 | 0 + 4 == 4 16 00000 01111 01111 | 0 + 8 == 8 17 00000 10000 10000 | 0 + NaR == NaR 18 00000 10001 10001 | 0 + -8 == -8 19 00000 10010 10010 | 0 + -4 == -4 20 00000 10011 10011 | 0 + -3 == -3 21 00000 10100 10100 | 0 + -2 == -2 22 00000 10101 10101 | 0 + -1.75 == -1.75 23 00000 10110 10110 | 0 + -1.5 == -1.5 24 00000 10111 10111 | 0 + -1.25 == -1.25 25 00000 11000 11000 | 0 + -1 == -1 26 00000 11001 11001 | 0 + -0.875 == -0.875 27 00000 11010 11010 | 0 + -0.75 == -0.75 28 00000 11011 11011 | 0 + -0.625 == -0.625 29 00000 11100 11100 | 0 + -0.5 == -0.5 30 00000 11101 11101 | 0 + -0.375 == -0.375 31 00000 11110 11110 | 0 + -0.25 == -0.25 32 00000 11111 11111 | 0 + -0.125 == -0.125