diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..8778ddf --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,11 @@ +# Changes + +[20.03.2024] +- Add CHANGELOG.md +- Set device in nestang_nano20k.gprj +- Add mapLoopy.v to nestang_nano20k.gprj +- Add mapLoopy.v to nestang_primer25k.gprj +- Add NESGamepad.v to nestang_primer25k.gprj +- Add guards for NESGamepad (only supported by Nano20k) + +# ToDo \ No newline at end of file diff --git a/nestang_nano20k.gprj b/nestang_nano20k.gprj index 6bfda5a..9e22652 100644 --- a/nestang_nano20k.gprj +++ b/nestang_nano20k.gprj @@ -3,7 +3,7 @@ 5 - gw2ar18c-001 + gw2ar18c-000 @@ -27,6 +27,7 @@ + diff --git a/nestang_primer25k.gprj b/nestang_primer25k.gprj index fd8137f..aa3a951 100644 --- a/nestang_primer25k.gprj +++ b/nestang_primer25k.gprj @@ -6,6 +6,7 @@ gw5a25a-002 + @@ -26,6 +27,7 @@ + diff --git a/src/nestang_top.sv b/src/nestang_top.sv index fb12787..c8051f2 100644 --- a/src/nestang_top.sv +++ b/src/nestang_top.sv @@ -64,12 +64,14 @@ module nestang_top ( // NES gamepad +`ifdef N20K output NES_gamepad_data_clock, output NES_gampepad_data_latch, input NES_gampead_serial_data, output NES_gamepad_data_clock2, output NES_gampepad_data_latch2, input NES_gampead_serial_data2, +`endif // HDMI TX output tmds_clk_n, @@ -216,7 +218,7 @@ UartDemux #(.FREQ(FREQ), .BAUDRATE(BAUDRATE)) uart_demux( wire [7:0]NES_gamepad_button_state2; wire NES_gamepad_data_available2; - +`ifdef N20K NESGamepad nes_gamepad( .i_clk(clk), .i_rst(sys_resetn), @@ -236,6 +238,7 @@ UartDemux #(.FREQ(FREQ), .BAUDRATE(BAUDRATE)) uart_demux( .o_button_state(NES_gamepad_button_state2), .o_data_available(NES_gamepad_data_available2) ); +`endif // Joypad handling always @(posedge clk) begin