Skip to content

Commit

Permalink
No builtin ROM at all. How much die area could it save?
Browse files Browse the repository at this point in the history
  • Loading branch information
rejunity committed Nov 10, 2024
1 parent 719260b commit 42fe9e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/tt_um_rejunity_atari2600.v
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

`default_nettype none
// `define BUILTIN_ROM
// `define VGA_50MHz
// `define VGA_RESYNC_TO_TIA
// `define VGA_REGISTERED_OUTPUTS
Expand Down Expand Up @@ -289,13 +290,17 @@ module tt_um_rejunity_atari2600 (

// -------------------------------------------------------------------------
reg [7:0] builtin_rom [4095:0];
`ifdef BUILTIN_ROM
initial begin
$readmemh("../roms/rom_builtin.mem", builtin_rom, 0, 4095);
// DEBUG: override reset vector
// rom[12'hFFD] <= 8'hF0; rom[12'hFFC] <= 8'h00;
end

wire use_internal_rom = rom_config[4]; // maps to FIRE button
`else
wire use_internal_rom = 0;
`endif

wire [7:0] rom_data = use_internal_rom ? internal_rom_data : external_rom_data;
reg [7:0] internal_rom_data;
reg [7:0] external_rom_data;
Expand Down

0 comments on commit 42fe9e2

Please sign in to comment.