Skip to content

Commit

Permalink
Macro ROMs: slightly different mapping to make it easier to select ma…
Browse files Browse the repository at this point in the history
…cro ROMs with joystick
  • Loading branch information
rejunity committed Nov 10, 2024
1 parent c775fc5 commit 1610bbd
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions src/tt_um_rejunity_atari2600.v
Original file line number Diff line number Diff line change
Expand Up @@ -313,13 +313,9 @@ module tt_um_rejunity_atari2600 (

`ifdef NO_MACRO_ROMS
always @(*)
casez ({use_internal_rom, rom_config[3:1]})
4'b0zzz: rom_data = external_rom_data;
4'b10zz: rom_data = internal_rom_data;
4'b1100: rom_data = internal_rom_data;
4'b1101: rom_data = internal_rom_data;
4'b1110: rom_data = internal_rom_data;
4'b1111: rom_data = internal_rom_data;
casez ({use_internal_rom, rom_config[3:0]})
5'b0zzzz: rom_data = external_rom_data;
default: rom_data = internal_rom_data;
endcase
`else
rom_2600_0 rom0_I (
Expand Down Expand Up @@ -351,13 +347,13 @@ module tt_um_rejunity_atari2600 (
rom3_data_r <= rom3_data;
end
always @(*)
casez ({use_internal_rom, rom_config[3:1]})
4'b0zzz: rom_data = external_rom_data;
4'b10zz: rom_data = internal_rom_data;
4'b1100: rom_data = rom0_data_r;
4'b1101: rom_data = rom1_data_r;
4'b1110: rom_data = rom2_data_r;
4'b1111: rom_data = rom3_data_r;
casez ({use_internal_rom, rom_config[3:0]})
5'b0zzzz: rom_data = external_rom_data;
5'b10001: rom_data = rom0_data_r;
5'b10010: rom_data = rom1_data_r;
5'b10100: rom_data = rom2_data_r;
5'b11000: rom_data = rom3_data_r;
default: rom_data = internal_rom_data;
endcase
`endif

Expand Down

0 comments on commit 1610bbd

Please sign in to comment.