HDLbits
Browse Problems

RTL Design Patterns/Branch Prediction

CS450 Timer

medium
timercounterbranch-prediction

On each rising edge, load data when load is high. Otherwise decrement a nonzero count. Hold at zero until another load. Assert tc whenever the count is zero.