diff --git a/cores/c16/c16_mist.qsf b/cores/c16/c16_mist.qsf index 09b3450..85fe120 100644 --- a/cores/c16/c16_mist.qsf +++ b/cores/c16/c16_mist.qsf @@ -344,6 +344,7 @@ set_global_assignment -name VERILOG_SHOW_LMF_MAPPING_MESSAGES OFF set_global_assignment -name ENABLE_DRC_SETTINGS OFF set_location_assignment PLL_1 -to pll_c16|altpll_component|auto_generated|pll1 set_global_assignment -name AUTO_SHIFT_REGISTER_RECOGNITION OFF +set_global_assignment -name SYSTEMVERILOG_FILE c16_mist.sv set_global_assignment -name VHDL_FILE tap_fifo.vhd set_global_assignment -name VHDL_FILE c1530.vhd set_global_assignment -name VHDL_FILE gen_ram.vhd @@ -354,7 +355,6 @@ set_global_assignment -name VERILOG_FILE mos8501.v set_global_assignment -name VERILOG_FILE mos6529.v set_global_assignment -name VERILOG_FILE kernal_rom.v set_global_assignment -name VERILOG_FILE colors_to_rgb.v -set_global_assignment -name VERILOG_FILE c16_mist.v set_global_assignment -name VERILOG_FILE c16_keymatrix.v set_global_assignment -name VERILOG_FILE c16.v set_global_assignment -name VERILOG_FILE ps2receiver.v diff --git a/cores/c16/c16_mist.v b/cores/c16/c16_mist.sv similarity index 99% rename from cores/c16/c16_mist.v rename to cores/c16/c16_mist.sv index 6f71887..32701fe 100644 --- a/cores/c16/c16_mist.v +++ b/cores/c16/c16_mist.sv @@ -1,5 +1,5 @@ // -// c16_mist.v - C16 for the MiST +// c16_mist.sv - C16 for the MiST // // https://github.com/mist-devel // @@ -84,8 +84,6 @@ parameter CONF_STR = { "T5,Reset;" }; -parameter CONF_STR_LEN = 11+17+18+18+21+30+28+18+22+9; - localparam ROM_MEM_START = 25'h10000; localparam TAP_MEM_START = 25'h20000; @@ -275,7 +273,7 @@ wire img_mounted; wire [8:0] sd_buff_addr; // include user_io module for arm controller communication -user_io #(.STRLEN(CONF_STR_LEN)) user_io ( +user_io #(.STRLEN($size(CONF_STR)>>3)) user_io ( .conf_str ( CONF_STR ), .clk_sys ( clk28 ), @@ -492,7 +490,7 @@ always @(posedge clk28) begin if (clkref_D && !clkref && !ioctl_downloading && tap_play_addr != tap_last_addr && !tap_wrfull) tap_sdram_oe <= 1; if (clkref && !clkref_D && tap_sdram_oe) begin tap_wrreq <= 1; - tap_data_in <= tap_play_addr[0] ? sdram_dout[15:8]:sdram_dout[7:0]; + tap_data_in <= tap_play_addr[0] ? sdram_dout[15:8]:sdram_dout[7:0]; tap_sdram_oe <= 0; tap_play_addr <= tap_play_addr + 1'd1; end @@ -852,7 +850,7 @@ c1541_sd c1541_sd ( .sd_buff_din ( sd_din ), .sd_buff_dout ( sd_dout ), .sd_buff_wr ( sd_dout_strobe ), - .sd_buff_addr ( sd_buff_addr ), + .sd_buff_addr ( sd_buff_addr ), .led ( led_disk ), .c1541rom_clk ( clk28 ),