diff --git a/cpld/rev.CD/top.v b/cpld/rev.CD/top.v index 3b84831..603ca78 100644 --- a/cpld/rev.CD/top.v +++ b/cpld/rev.CD/top.v @@ -608,7 +608,7 @@ end /* PORT #7FFD */ -wire port_7ffd_cs = n_ioreq == 0 && xa[1] == 0 && xa[15] == 0 && xa[14] == 1'b1; +wire port_7ffd_cs = n_ioreq == 0 && xa[1] == 0 && xa[15] == 0 && (xa[14] == 1'b1 || !rom_plus3); reg vbank; reg rombank128; reg lock_7ffd; @@ -666,7 +666,7 @@ end /* PORT #1FFD */ -wire port_1ffd_cs = !extlock && n_ioreq == 0 && xa == 16'h1FFD; +wire port_1ffd_cs = rom_plus3 && n_ioreq == 0 && xa == 16'h1FFD; reg [2:0] p1ffd; always @(posedge clk28 or negedge rst_n0) begin if (!rst_n0) begin @@ -681,7 +681,7 @@ end /* PORTS #2FFD & #3FFD (+3DOS) */ -wire port_2ffd_3ffd_cs = !extlock && n_ioreq == 0 && (xa == 16'h2FFD || xa == 16'h3FFD); +wire port_2ffd_3ffd_cs = rom_plus3 && n_ioreq == 0 && (xa == 16'h2FFD || xa == 16'h3FFD); always @(posedge clk28 or negedge rst_n0) begin if (!rst_n0) begin plus3_dwr <= 1'b1; diff --git a/out/cpld.rev.C1.pof b/out/cpld.rev.C1.pof index 7a0d2e5..872a893 100644 Binary files a/out/cpld.rev.C1.pof and b/out/cpld.rev.C1.pof differ diff --git a/out/cpld.rev.D1.pof b/out/cpld.rev.D1.pof index 88d1652..3540d0a 100644 Binary files a/out/cpld.rev.D1.pof and b/out/cpld.rev.D1.pof differ