Counter Design 2

Counter Design 2 - Problem 2 Design a dual-function...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Problem 2 Design a dual-function counter. The counter has one control input, x , and a two-bit state. When x = 0, the counter should function as a standard-up counter, that is, it should cycle through the states 00, 01, 10, 11. When x = 1, the counter should function as a Gray Code counter, that is, it should cycle through the states 00, 01, 11, 10. Step 1: Arrange the present states. Once again, we begin by organizing the present state information. Instead of creating a state diagram, we will organize the information in the state table according to the description of the present and next state information as given in the specification. The primary difference between this problem and the previous one is the inclusion of the control input x . In general, a given present state will give two different next states, depending on whether the value of x is 0 or 1. Since that is the case, the value of x must be considered as a part of the total present state . This requires an adjustment to the state table that was used previously. Present State Next State SR inputs D inputs JK inputs T inputs x A B A + B + S A R A S B R B D A D B J A K A J B K B T A T B 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 By organizing the table as we have, with x as the most significant input, the table can be divided into two sections. The first section contains all possible present states when the input x = 0.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/17/2011 for the course ECE 3504 at Virginia Tech.

Page1 / 3

Counter Design 2 - Problem 2 Design a dual-function...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online