Toggle

A toggle is a 1-output circuit that changes state at every cycle. Design a toggle circuit that starts with the output being 0 and generates an alternating sequence of 1’s and 0’s, i.e., 010101010101…

Specification

module toggle (t, clk, rst);
    input clk, rst;
    output t;

Input

Output

Problem information

Author: Jordi Cortadella

Generation: 2026-02-03T12:23:48.548Z

© Jutge.org, 2006–2026.
https://jutge.org