I'm trying to port MiSTER Genesis core to DE2-115 board. The only board I have.
The dufficult thing for me is ROM copying to SDRAM.
In the emu module (sys_top/emu) I see ROM data write to port zero of sdram module.
Code: Select all
str 735: .din0({ioctl_data[7:0],ioctl_data[15:8]}),
str 737, 738: .wrl0(1), .wrh0(1),
Where ioctl_data is 16-bit bus:
Code: Select all
str 324: wire [15:0] ioctl_data;
It's mean data is coping word by word (16 bits). Right?
But in hps_io module (sys_top/emu/hps_io) size of "ioctl_dout" depends of "WIDE" parameter.
Code: Select all
str 111: output reg [DW:0] ioctl_dout,
Code: Select all
str 166: localparam DW = (WIDE) ? 15 : 7;
Code: Select all
str 28: module hps_io #(parameter STRLEN=0, PS2DIV=0, WIDE=0, VDNUM=1, PS2WE=0)
Code: Select all
str 642: ioctl_dout <= io_din[DW:0];
Where am I wrong?