mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-22 22:19:14 +01:00
21 lines
438 B
Systemverilog
21 lines
438 B
Systemverilog
bus.rdata
|
|
module cpu_bootloader (if_cpu_bus bus);
|
|
|
|
always_ff @(posedge bus.clk) begin
|
|
bus.ack <= 1'b0;
|
|
if (bus.request) begin
|
|
bus.ack <= 1'b1;
|
|
end
|
|
end
|
|
|
|
always_comb begin
|
|
bus.rdata = 32'd0;
|
|
if (bus.ack) begin
|
|
case (bus.address[6:2]){rom_formatted}
|
|
default: bus.rdata = 32'd0;
|
|
endcase
|
|
end
|
|
end
|
|
|
|
endmodule
|