OpenCores
URL https://opencores.org/ocsvn/ethmac/ethmac/trunk

Subversion Repositories ethmac

[/] [ethmac/] [trunk/] [rtl/] [verilog/] [eth_fifo.v] - Diff between revs 356 and 357

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 356 Rev 357
Line 102... Line 102...
  if(clear)
  if(clear)
    cnt <= { {(CNT_WIDTH-1){1'b0}}, read^write};
    cnt <= { {(CNT_WIDTH-1){1'b0}}, read^write};
  else
  else
  if(read ^ write)
  if(read ^ write)
    if(read)
    if(read)
      cnt <= cnt - 1'b1;
      cnt <= cnt - 1;
    else
    else
      cnt <= cnt + 1'b1;
      cnt <= cnt + 1;
end
end
 
 
 
 
always @ (posedge clk or posedge reset)
always @ (posedge clk or posedge reset)
begin
begin

powered by: WebSVN 2.1.0

© copyright 1999-2020 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.