Rewrite the above process using a suitable wait statement pr
Rewrite the above process using a suitable wait statement.
process (clk)
if clk=’1’ and clk’event then
some code
end if:
end process;
Solution
example code is
process(clk)
if clk= \'1\' and clk\'event then
Q <= X;
NQ <= not X;
else
Q <=Y;
NQ <= not Y;
end if;
end process;
