Q. Which of the following line is correct for detecting positive edge of a clock? (Solved)
1. if (clk’event and clk = ‘0’)
2. if (clk’event and clk = ‘1’)
3. if (clk’event or clk = ‘0’)
4. if (clk’event or clk = ‘1’)
- b. if (clk’event and clk = ‘1’)