Pulse Width Capture Register
Pulse width modulation receivers and frequency counters require stable data for downstream processing. A capture register holds a fleeting measurement while the system prepares for the next incoming pulse.
The circuit must monitor the 1-bit pulse signal and detect its falling edge. When a falling edge occurs, it must store the current 8-bit count_in value into the 8-bit capture_out register. Simultaneously, it must assert the 1-bit valid signal to notify downstream logic that new data is available.
Behavioral requirements:
- Synchronous updates occur on the rising edge of the 1-bit
clksignal. - When the 1-bit
rstsignal is 1,capture_outis reset to 0 andvalidis forced to 0. - When
pulsetransitions from 1 to 0,capture_outupdates withcount_inandvalidbecomes 1 for exactly one clock cycle. - During all other conditions,
capture_outretains its previous value andvalidremains 0.
Constraints
- Implement using synchronous logic triggered by the rising edge of
clk. - Treat
rstas a synchronous, active-high reset. - The
validsignal must be registered and remain high for exactly one clock cycle per falling edge.
Topics
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 Interface and Communication Circuits
Problem 17 of 79 in the Interface and Communication Circuits track.
Related problems
Browse all problems · Digital logic design practice problems · Learning tracks