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'h001000085000aa000a9000ea000ff0002b0002000000000a9000ff0002200020:
|
|
(val_== 1)?256'h07b0002000000000a200010000a9000ff0002b0002000008000a900011000e60:
|
|
(val_== 2)?256'h6400011000640001000064000fd00080000cb000ea000f000010000a5000ff00:
|
|
(val_== 3)?256'h90008e000ef000d80008d000ff000d3000200004800060000130006400012000:
|
|
(val_== 4)?256'h00068000ef000db0008d00003000a5000ef000da0008d00002000a5000ef000d:
|
|
(val_== 5)?256'h0029000ef000dc000ad000090008600008000850005a00060000ef000dc0008d:
|
|
(val_== 6)?256'h0ef000d9000ad000080009100000000a0000ef000d8000ad000f9000f0000010:
|
|
(val_== 7)?256'hc8000ef000db000ad0000800091000c8000ef000da000ad0000800091000c800:
|
|
(val_== 8)?256'hc000ad000480006000000000a2000ef000dd000ad000600007a0000800091000:
|
|
(val_== 9)?256'h000090008600008000850005a0006000068000f9000f00000200029000ef000d:
|
|
(val_==10)?256'h00c80000800091000c80000800091000c8000080009100000000a000000000a9:
|
|
(val_==11)?256'h0f00000100029000ef000dc000ad00026000f00008800009000a000008000910:
|
|
(val_==12)?256'h91000c8000ef000d9000ad000080009100000000a0000ef000d8000ad000f600:
|
|
(val_==13)?256'h800091000c8000ef000db000ad0000800091000c8000ef000da000ad00008000:
|
|
(val_==14)?256'h00060000ff000a2000ff000a90007a0006000000000a200000000a90007a0000:
|
|
(val_==15)?256'h006800001000e6000020009000000000850000000065000980001800048000c8:
|
|
(val_==16)?256'h088000030008500000000b100003000a0000ff000c10004c00004000a0000600:
|
|
(val_==17)?256'hce0004c00000000b100088000aa00000000b100088000020008500000000b100:
|
|
(val_==18)?256'h00000000000000000000000000000000000000000000000000000000000ff000:
|
|
(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
|