Tell me whether the below code is checker or not

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
Check the code and tell me still if any checkers i need to do . if there give me a brief about them.
Code:
 always@(posedge wr_clk or posedge rd_clk)
    begin
  if(rd_empty && wr_full)
    begin
   $display("error");
    end
    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

- - - Updated - - -

the above code is for Asynchronous FIFO

- - - Updated - - -

the above code is for Asynchronous FIFO
 

what about overflow underflow ?
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…