Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to generate a checker for asynchronous fifo

Status
Not open for further replies.

sai685

Junior Member level 2
Joined
Sep 4, 2015
Messages
23
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
292
i want to know whether the below condition are checkers or not?
1. while(empty) but it is showing (full)
2. while(full) but it is showing (empty).
3.if the expected result is not equal to produced result.
then display error.

if these are checker just tell me some hints to write the code for this.
 

You can use a vendor FIFO ip block.

The instantiated component will tell you what signals to connect up.

The fifo cannot be empty and full at the same time.

What you know is if you are not full then you can still write data.
What you know is if you are not empty then you can still read data.

Can you expand on what you are actually trying to achieve
 

what i am trying is like just to generate checkers for asynchronous fifo. Can you tell me whether the below codes are checkers for fifo or not
Code:
always@(posedge wr_clk or posedge rd_clk)
    begin
  if(rd_empty && wr_full)
    begin
   $display("error");
    end
    end
 
 always@(posedge wr_clk or posedge rd_clk)
    begin
      if(que.size!=1 )
       force rd_empty=1;
      if(que.size!=32 )
     force   rd_empty=1;
      
    end
  always @(posedge wr_clk)
    begin
      if(write_enable && wr_full)
        begin
          $display("error");
        end
    end
  always @(posedge rd_clk)
    begin
      if(read_enable && rd_empty)
        begin
          $display("error");
        end
    end
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top