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