mirror of
https://github.com/MiSTer-devel/MacPlus_MiSTer.git
synced 2025-02-18 07:30:31 +00:00
CE optimization.
This commit is contained in:
parent
c5cbc8e0a4
commit
7d199f08c3
16
MacPlus.sv
16
MacPlus.sv
@ -168,13 +168,17 @@ pll pll
|
|||||||
.locked(pll_locked)
|
.locked(pll_locked)
|
||||||
);
|
);
|
||||||
|
|
||||||
wire cep = (stage == 0);
|
reg cep,cen,cel,cepix;
|
||||||
wire cen = (stage == 4);
|
always @(posedge clk_sys) begin
|
||||||
wire cel = (stage == 7);
|
reg [2:0] div;
|
||||||
wire cepix = !stage[1:0];
|
|
||||||
|
|
||||||
reg [2:0] stage;
|
div <= div + 1'd1;
|
||||||
always @(negedge clk_sys) stage <= stage + 1'd1;
|
|
||||||
|
cep <= (div == 0);
|
||||||
|
cen <= (div == 4);
|
||||||
|
cel <= (div == 7);
|
||||||
|
cepix <= !div[1:0];
|
||||||
|
end
|
||||||
|
|
||||||
///////////////////////////////////////////////////
|
///////////////////////////////////////////////////
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user