2021-08-20 19:51:55 +02:00
|
|
|
module cpu_bootloader (
|
|
|
|
if_system.sys sys,
|
|
|
|
if_cpu_bus bus
|
|
|
|
);
|
|
|
|
|
|
|
|
always_ff @(posedge sys.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])
|
2021-08-23 21:40:37 +02:00
|
|
|
0: bus.rdata = 32'h00000793;
|
|
|
|
1: bus.rdata = 32'h00000713;
|
|
|
|
2: bus.rdata = 32'h50000637;
|
|
|
|
3: bus.rdata = 32'h02000593;
|
2021-09-01 17:21:41 +02:00
|
|
|
4: bus.rdata = 32'h00062683;
|
2021-08-23 21:40:37 +02:00
|
|
|
5: bus.rdata = 32'h0016f693;
|
|
|
|
6: bus.rdata = 32'hfe068ce3;
|
|
|
|
7: bus.rdata = 32'h00464683;
|
|
|
|
8: bus.rdata = 32'h00f696b3;
|
|
|
|
9: bus.rdata = 32'h00878793;
|
|
|
|
10: bus.rdata = 32'h00d76733;
|
|
|
|
11: bus.rdata = 32'hfeb792e3;
|
|
|
|
12: bus.rdata = 32'h00000793;
|
2021-09-01 17:21:41 +02:00
|
|
|
13: bus.rdata = 32'h500005b7;
|
|
|
|
14: bus.rdata = 32'h0005a683;
|
|
|
|
15: bus.rdata = 32'h0016f693;
|
|
|
|
16: bus.rdata = 32'hfe068ce3;
|
|
|
|
17: bus.rdata = 32'h0045c683;
|
|
|
|
18: bus.rdata = 32'h00178613;
|
|
|
|
19: bus.rdata = 32'h0ff6f693;
|
|
|
|
20: bus.rdata = 32'h00d78023;
|
|
|
|
21: bus.rdata = 32'h00e61863;
|
|
|
|
22: bus.rdata = 32'hf0000297;
|
|
|
|
23: bus.rdata = 32'hfa828293;
|
|
|
|
24: bus.rdata = 32'h00028067;
|
|
|
|
25: bus.rdata = 32'h00060793;
|
|
|
|
26: bus.rdata = 32'hfd1ff06f;
|
2021-08-20 19:51:55 +02:00
|
|
|
default: bus.rdata = 32'd0;
|
|
|
|
endcase
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
endmodule
|