URL
https://opencores.org/ocsvn/rf6809/rf6809/trunk
Subversion Repositories rf6809
Compare Revisions
- This comparison shows the changes necessary to convert path
/rf6809/trunk
- from Rev 11 to Rev 9
- ↔ Reverse comparison
Rev 11 → Rev 9
/rtl/cpu/rf6809.sv
208,7 → 208,7
(ir[bitsPerByte+4] ? 5'd2 : 5'd0) + |
(ir[bitsPerByte+5] ? 5'd2 : 5'd0) + |
(ir[bitsPerByte+6] ? 5'd2 : 5'd0) + |
(ir[bitsPerByte+7] ? (isFar ? 5'd3 : 5'd2) : 5'd0) |
(ir[bitsPerByte+7] ? 5'd2 : 5'd0) |
; |
// cnt = 0; |
// if (ir[8]) cnt = cnt + 5'd1; // CC |
1048,13 → 1048,13
end |
ICACHE7: |
if (waitcnt==6'd0) begin |
next_state(ICACHE5); |
next_state(ICACHE6); |
adr_o <= icwa; |
for (n4 = 15; n4 >= 0; n4 = n4 - 1) |
if (~icgot[n4]) begin// & ~outstanding[n4]) begin |
if (~icgot[n4] & ~outstanding[n4]) begin |
cti_o <= 3'b001; |
cyc_o <= `TRUE; |
stb_o <= `TRUE; |
cyc_o <= TRUE; |
stb_o <= TRUE; |
adr_o[3:0] <= n4[3:0]; |
outstanding[n4[3:0]] <= 1'b1; |
next_state(ICACHE9); |
1067,7 → 1067,7
if (bto) |
outstanding <= 16'h0; |
if (aack_i) |
outstanding[atag_i] <= 1'b0; |
outstanding[adr_o[3:0]] <= 1'b0; |
if (ack_i|rty_i|bto) begin |
wb_nack(); |
waitcnt <= 6'd20; |
2935,7 → 2935,7
accb <= dat; |
radr <= radr + 2'd1; |
if (isRTI) begin |
$display("loaded accb=%h from %h", dat, radr); |
$display("loaded accb=%h from ", dat, radr); |
ssp <= ssp + 2'd1; |
next_state(PULL1); |
end |
3097,9 → 3097,6
`LW_PCL: begin |
pc[`LOBYTE] <= dat; |
radr <= radr + 2'd1; |
// If loading from the vector table in bank zero, force pc[23:16]=0 |
if (radr[`BYTE3]=={BPB{1'b0}} && radr[`BYTE2]=={BPB{1'b1}} && radr[7:4]==4'hF) |
pc[`BYTE3] <= {BPB{1'b0}}; |
if (isRTI|isRTS|isPULS) begin |
$display("loadded PCL=%h", dat); |
ssp <= ssp + 2'd1; |