Altera_Forum
Honored Contributor
14 years agoSelf-oscillation in simulating
Hi every one.
I wrote a verilog fifo including the following line: always @(posedge read or posedge write or negedge rst) begin if(!rst)usedw<=8'h0; else if(read==1'b1)begin usedw <= usedw - 8'h1; end else if(write==1'b1) begin usedw <= usedw +8'h1; end end When siimulating with Modelsim some strange thing happend that all the element usedw[] of usedw ware like self-oscillaton. Is there any one who can tell me what's the reason? An Altera's supportor said to me that it can be solved by adding contraints to the project.But I got the same results when I addeed sdc files. Looking for help from you.