Attempt 2:
// Initiate the 32-bit palette memory.
altsyncram Palette_DP_ram (
// ********* PORT A *************
.clock0 ( ),
.address_a ( ),
.data_a ( { 8{1'b1} } ),
.wren_a ( 1'b0 ),
.aclr0 ( 1'b0 ),
.addressstall_a ( 1'b0 ),
.byteena_a ( 1'b0 ),
.clocken0 ( 1'b0 ),
.q_a ( ),
.rden_a ( 1'b0 ),
// ********* PORT B *************
.clock1 ( clk ),
.address_b ( palette_addr ),
.data_b ( { 8{1'b1} } ),
.wren_b ( 1'b0 ),
.aclr1 ( 1'b0 ),
.addressstall_b ( 1'b0 ),
.byteena_b ( 1'b1 ),
.clocken1 ( 1'b1 ),
.q_b ( {wvga_a, wvga_b, wvga_g, wvga_r} ), // output
.rden_b ( 1'b1 ),
.clocken2 ( 1'b1 ),
.clocken3 ( 1'b1 ),
.eccstatus ( )
);
defparam
Line_Buffer_DP_ram.address_aclr_b = "NONE",
Line_Buffer_DP_ram.address_reg_b = "CLOCK1",
Line_Buffer_DP_ram.clock_enable_input_a = "BYPASS",
Line_Buffer_DP_ram.clock_enable_input_b = "BYPASS",
Line_Buffer_DP_ram.clock_enable_output_b = "BYPASS",
Line_Buffer_DP_ram.init_file = "palette_init.mif",
Line_Buffer_DP_ram.init_file_layout = "PORT_A",
Line_Buffer_DP_ram.intended_device_family = "MAX 10",
Line_Buffer_DP_ram.lpm_type = "altsyncram",
Line_Buffer_DP_ram.numwords_a = 256,
Line_Buffer_DP_ram.numwords_b = 256,
Line_Buffer_DP_ram.operation_mode = "DUAL_PORT",
Line_Buffer_DP_ram.outdata_aclr_b = "NONE",
Line_Buffer_DP_ram.outdata_reg_b = "CLOCK1",
Line_Buffer_DP_ram.power_up_uninitialized = "TRUE",
Line_Buffer_DP_ram.widthad_a = 8,
Line_Buffer_DP_ram.widthad_b = 8,
Line_Buffer_DP_ram.width_a = 32,
Line_Buffer_DP_ram.width_b = 32,
Line_Buffer_DP_ram.width_byteena_a = 1;