Codiode

4-Bit Synchronous Up/Down Counter: T Expression Derivation

MediumLogic CircuitBuild

Timers, PWM generators, and motor controllers rely on up/down counters to track bidirectional movement or time. The toggle condition for each bit in a synchronous counter depends on the count direction: up-counting looks for a chain of ones, while down-counting looks for a chain of zeros.

Derive and implement the combinational logic for the T-flip-flop input T1 of the second stage (bit 1) in a 4-bit synchronous up/down counter. The circuit evaluates the current state of the first bit Q0 and the mode control signals UP and DOWN to determine if the second bit should toggle.

UP DOWN Q0 T1
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 0
1 0 0 0
1 0 1 1

Assume the system guarantees UP and DOWN are never asserted simultaneously.

Constraints

  • Use only combinational logic gates.
  • Do not use sequential elements, multiplexers, or arithmetic blocks.

Topics

Combinational LogicCounters

Solve this problem

Place the gates, wire them up and watch the signals settle. Every submission runs on the same simulation engine that grades it.

This problem is part of Codiode Pro. The statement above is free to read.

The circuit builder and code editor need a desktop screen. On a phone, read the problem here and open it on a laptop to solve.

Part of Counters

Problem 46 of 139 in the Counters track.

Related problems

Browse all problems · Digital logic design practice problems · Learning tracks

Solve this on a laptopSend yourself the link and continue there.