Seems to work, when you run the test program it resets the card and sends the voltage and test pattern, and it does receive a response from the card.
50 lines
3.4 KiB
Systemverilog
50 lines
3.4 KiB
Systemverilog
|
|
function [255:0] bram_ini_table;
|
|
input integer index;//Mode type
|
|
input integer val_; //Port A index, Port B Index, Number of Items in Loop, Port A Start, Port B Start, reserved
|
|
case (index)
|
|
0: bram_ini_table=
|
|
(val_== 0)?256'h00d00003a00018000a9000ea000ff000300002000000000a9000ff0002700020:
|
|
(val_== 1)?256'h0a9000ff000300002000008000a900011000e60001000085000aa000a9000fd0:
|
|
(val_== 2)?256'hfd00080000cb000ea000f000010000a5000ff000800002000000000a20001000:
|
|
(val_== 3)?256'hd00010000a500048000600001300064000120006400011000640001000064000:
|
|
(val_== 4)?256'h000ef000da0008d00012000a5000ef000d90008d00011000a5000ef000d80008:
|
|
(val_== 5)?256'h0008000850005a00060000ef000dc0008d00068000ef000db0008d00013000a5:
|
|
(val_== 6)?256'h091000c80000800091000c8000080009100000000a000000000a900009000860:
|
|
(val_== 7)?256'hd8000ad000f9000f00000100029000ef000dc000ad0000800091000c80000800:
|
|
(val_== 8)?256'ha000ad0000800091000c8000ef000d9000ad000080009100000000a0000ef000:
|
|
(val_== 9)?256'h000600007a0000800091000c8000ef000db000ad0000800091000c8000ef000d:
|
|
(val_==10)?256'h0091000c8000080009100000000a000000000a9000090008600008000850005a:
|
|
(val_==11)?256'h0ad00026000f00008800012000a00000800091000c80000800091000c8000080:
|
|
(val_==12)?256'h080009100000000a0000ef000d8000ad000f6000f00000100029000ef000dc00:
|
|
(val_==13)?256'hd0000800091000c8000ef000da000ad0000800091000c8000ef000d9000ad000:
|
|
(val_==14)?256'h0007a0006000000000a200000000a90007a0000800091000c8000ef000db000a:
|
|
(val_==15)?256'h00000000000000000000000000000000000000000060000ff000a2000ff000a9:
|
|
(val_==16)?256'h0000000000000000000000000000000000000000000000000000000000000000:
|
|
(val_==17)?256'h0000000000000000000000000000000000000000000000000000000000000000:
|
|
(val_==18)?256'h0000000000000000000000000000000000000000000000000000000000000000:
|
|
(val_==19)?256'h000ff00000000ff00000000ff000000000000000000000000000000000000000:
|
|
(val_==20)?256'h0000000000000000000000000000000000000000000000000000000000000000:
|
|
(val_==21)?256'h0000000000000000000000000000000000000000000000000000000000000000:
|
|
(val_==22)?256'h0000000000000000000000000000000000000000000000000000000000000000:
|
|
(val_==23)?256'h0000000000000000000000000000000000000000000000000000000000000000:
|
|
(val_==24)?256'h0000000000000000000000000000000000000000000000000000000000000000:
|
|
(val_==25)?256'h0000000000000000000000000000000000000000000000000000000000000000:
|
|
(val_==26)?256'h0000000000000000000000000000000000000000000000000000000000000000:
|
|
(val_==27)?256'h0000000000000000000000000000000000000000000000000000000000000000:
|
|
(val_==28)?256'h0000000000000000000000000000000000000000000000000000000000000000:
|
|
(val_==29)?256'h0000000000000000000000000000000000000000000000000000000000000000:
|
|
(val_==30)?256'h0000000000000000000000000000000000000000000000000000000000000000:
|
|
(val_==31)?256'h0000000000000000000000000000000000000000000000000000000000000000:
|
|
(val_==32)?256'h0000000000000000000000000000000000000000000000000000000000000000:
|
|
(val_==33)?256'h0000000000000000000000000000000000000000000000000000000000000000:
|
|
(val_==34)?256'h0000000000000000000000000000000000000000000000000000000000000000:
|
|
(val_==35)?256'h0000000000000000000000000000000000000000000000000000000000000000:
|
|
(val_==36)?256'h0000000000000000000000000000000000000000000000000000000000000000:
|
|
(val_==37)?256'h0000000000000000000000000000000000000000000000000000000000000000:
|
|
(val_==38)?256'h0000000000000000000000000000000000000000000000000000000000000000:
|
|
(val_==39)?256'h0000000000000000000000000000000000000000000000000000000000000000:
|
|
0;
|
|
endcase
|
|
endfunction
|