From 8e16a7dd829a56f7023f209c3ac4f0995fb51f52 Mon Sep 17 00:00:00 2001 From: fjpolo Date: Wed, 20 Mar 2024 09:25:01 +0100 Subject: [PATCH 1/2] - Add CHANGELOG.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) --- CHANGELOG.md | 11 +++++++++++ nestang_nano20k.gprj | 3 ++- nestang_primer25k.gprj | 2 ++ src/nestang_top.sv | 5 ++++- 4 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..d70885c --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,11 @@ +# Changes + +[20.03.2024] +- Add CHANGELOG.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 From eae7ab3138d5328c483610123d3a70db113fe389 Mon Sep 17 00:00:00 2001 From: fjpolo Date: Wed, 20 Mar 2024 09:27:03 +0100 Subject: [PATCH 2/2] Fix changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d70885c..8778ddf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Changes [20.03.2024] -- Add CHANGELOG.CHANGELOG.md +- Add CHANGELOG.md - Set device in nestang_nano20k.gprj - Add mapLoopy.v to nestang_nano20k.gprj - Add mapLoopy.v to nestang_primer25k.gprj