Question: 4. (6 points) A synchronous system is needed to generate the encodings (in order) of the 52 cards in a standard deck of cards. This
4. (6 points) A synchronous system is needed to generate the encodings (in order) of the 52 cards in a standard deck of cards. This system will have two buses as its output: C(3:0) which gives the card value from 1 to 13 and S(2:0) which indicates the suit. The input "NextCard" advances the card counter Implement this system, by providing the logic for the cloud shape in the figure below Specifically when NextCard is high at the clock edge the top counter should advance by 1 if it is less than 13 and return to 1 if it is at 13. The bottom counter which maintains the suit should advance whenever the top counter returns to 1 or return to ifit is at 4. Neither counter should advance when NextCard is low The two counters shown have two synchronous inputs, a Count Enable (CE) input which increments the count and the "Load" input which loads the value on the D inputs into the counter. If both CE and Load inputs are high at the clock edge then the counters load. (Assume we have some method to load the first card into the counter; you do not need to provide any logic to do this.) St s, LOAD LOAD
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
