mirror of
https://github.com/MiSTer-devel/PCXT_MiSTer.git
synced 2026-04-26 03:04:30 +00:00
ROMs with specific names such as tandy.rom and pcxt.rom are no longer required in games/PCXT folder, but must initially be provided from the BIOS section of the OSD menu.
40 lines
527 B
Verilog
40 lines
527 B
Verilog
module bios(
|
|
input clka,
|
|
input ena,
|
|
input wea,
|
|
input [16:0] addra,
|
|
input [7:0] dina,
|
|
output reg [7:0] douta
|
|
);
|
|
|
|
reg [7:0] bios[131071:0];
|
|
|
|
always @(posedge clka)
|
|
if (ena)
|
|
if (wea)
|
|
bios[addra] <= dina;
|
|
else
|
|
douta <= bios[addra];
|
|
|
|
endmodule
|
|
|
|
|
|
module xtide(
|
|
input clka,
|
|
input ena,
|
|
input wea,
|
|
input [13:0] addra,
|
|
input [7:0] dina,
|
|
output reg [7:0] douta
|
|
);
|
|
|
|
reg [7:0] bios[16383:0];
|
|
|
|
always @(posedge clka)
|
|
if (ena)
|
|
if (wea)
|
|
bios[addra] <= dina;
|
|
else
|
|
douta <= bios[addra];
|
|
|
|
endmodule |