rafimiet
Member level 5
Xst:737 - Found 1-bit latch for signal <SIG_bit>.
The following section of code shows the warning:
Can you please tell me where to make necessary changes, so that the warning is removed?
The following section of code shows the warning:
Xst:737 - Found 1-bit latch for signal <SIG_bit>. Latches may be generated from incomplete case or if statements. We do not recommend the use of latches in FPGA/CPLD designs, as they may lead to timing problems.
Code VHDL - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 Architecture SIGNAL SIG_bit : STD_LOGIC := '0'; TYPE state IS (init, load_nx_block, load_pixel, generate_bs, no_block_check); BEGIN CASE pr_state IS WHEN generate_bs => SIG_bit <= SIG(SIG_addr); IF p_count = 0 THEN IF (dout >= threshold) AND (SIG_bit = '0') THEN stream <= "10"; ELSIF (dout >= threshold) AND (SIG_bit = '1') THEN stream <= "01"; ELSE stream <= "00"; END IF; nx_state <= no_block_check; ELSE IF (dout >= threshold) AND (SIG_bit = '0') THEN stream <= "10"; ELSIF (dout >= threshold) AND (SIG_bit = '1') THEN stream <= "01"; ELSE stream <= "00"; END IF; nx_state <= load_pixel; END IF;
Can you please tell me where to make necessary changes, so that the warning is removed?
Last edited by a moderator: