This commit is contained in:
2026-07-09 22:48:08 +02:00
parent 50dbc682d9
commit 49c9e6315b
56 changed files with 309162 additions and 2007410 deletions

26
RTL/RgmiiReset.v Normal file
View File

@ -0,0 +1,26 @@
module RgmiiReset (
clock,
reset,
io_ethernet_reset,
io_pll_locked
);
input clock;
input reset;
output wire io_ethernet_reset;
input io_pll_locked;
reg [1:0] state;
reg timer;
wire _GEN = state == 2'h0;
wire _GEN_0 = state == 2'h1;
always @(posedge clock)
if (reset) begin
state <= 2'h0;
timer <= 1'h0;
end
else begin
if (_GEN)
state <= {1'h0, io_pll_locked};
timer <= ~_GEN & (_GEN_0 ? timer - 1'h1 : (state == 2'h2 ? timer - 1'h1 : timer));
end
assign io_ethernet_reset = (_GEN | _GEN_0) | (state != 2'h2);
endmodule