Altera_Forum
Honored Contributor
9 years agoIssue with scfifo when clear is active
Hi,
I am expecting output of fifo (which is qsys generated and uses scfifo) to be zero when clear is active but its giving unknown. The partial code of scfifo for clear signal is given below which is in file altera_mf.v always @(posedge clock or posedge aclr) begin if (aclr) begin if (add_ram_output_register == "ON") tmp_q <= {lpm_width{1'b0}}; else if ((lpm_showahead == "ON") && (use_eab == "ON")) begin tmp_q <= {lpm_width{1'bX}}; end else begin if (!stratix_family) begin tmp_q <= {lpm_width{1'b0}}; end else tmp_q <= {lpm_width{1'bX}}; end It's taking stratix_family value as 1. So the last line tmp_q <= {lpm_width{1'bX}} is getting excersized. And the expression for stratix_family in scfifo is as follows. stratix_family = (dev.FEATURE_FAMILY_STRATIX(intended_device_family)); The device chosen is of arria 10. So it's taking intended_device_family as arria 10. I checked the function FEATURE_FAMILY_STRATIX which is in altera_mf.v to debug. But not getting why stratix_family is assigned with value 1. Please help out. Thank you.