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

Subversion Repositories socgen

[/] [socgen/] [trunk/] [common/] [opencores.org/] [cde/] [ip/] [lifo/] [rtl/] [verilog/] [lifo_def] - Rev 134

Compare with Previous | Blame | View Log

always@(posedge clk)
  if(reset)               push_pointer <= {SIZE{1'b0}}; 
  else
    if( push && ~pop)     push_pointer <= push_pointer +  1;
  else
    if(~push &&  pop)     push_pointer <= push_pointer -  1;
  else
                          push_pointer <= push_pointer;


always@(posedge clk)
  if(reset)               pop_pointer <= {SIZE{1'b1}}; 
  else
    if( push && ~pop)     pop_pointer <= pop_pointer + 1;
  else
    if(~push &&  pop)     pop_pointer <= pop_pointer - 1;
  else
                          pop_pointer <= pop_pointer;

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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