Get block rom kind of working

This commit is contained in:
Byron Lathi
2022-12-20 15:38:55 -05:00
parent 19b13164e9
commit 52de8d3eb3
14 changed files with 8969 additions and 9 deletions

View File

@@ -15,16 +15,21 @@ module super6502
output logic cpu_nmib,
output logic cpu_rdy,
output logic cpu_resb,
output logic pll_cpu_reset
output logic pll_cpu_reset,
output logic cpu_phi2
);
assign pll_cpu_reset = '1;
assign cpu_data_oe = '0;
assign cpu_data_oe = {8{cpu_rwb}};
assign cpu_rdy = '1;
assign cpu_irqb = '1;
assign cpu_nmib = '1;
always @(posedge clk_2) begin
cpu_phi2 <= ~cpu_phi2;
end
always @(posedge clk_2) begin
if (button_reset == '0) begin
cpu_resb <= '0;
@@ -36,4 +41,15 @@ always @(posedge clk_2) begin
end
end
efx_single_port_ram boot_rom(
.clk(clk_2), // clock input for one clock mode
.addr(cpu_addr[7:0]), // address input
.wclke('0), // Write clock-enable input
.byteen('0), // Byteen input
.we('0), // Write-enable input
.re(cpu_rwb), // Read-enable input
.rdata(cpu_data_out) // Read data output
);
endmodule