New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here

Digital Electronics

by: Ms. Isobel Rau

Digital Electronics EE 231

Ms. Isobel Rau

GPA 3.67

William Rison

Almost Ready


These notes were just uploaded, and will be ready to view shortly.

Purchase these notes here, or revisit this page.

Either way, we'll remind you when they're ready :)

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

William Rison
Class Notes
25 ?




Popular in Course

Popular in Electrical Engineering

This 4 page Class Notes was uploaded by Ms. Isobel Rau on Thursday October 15, 2015. The Class Notes belongs to EE 231 at New Mexico Institute of Mining and Technology taught by William Rison in Fall. Since its upload, it has received 13 views. For similar materials see /class/223646/ee-231-new-mexico-institute-of-mining-and-technology in Electrical Engineering at New Mexico Institute of Mining and Technology.

Popular in Electrical Engineering


Reviews for Digital Electronics


Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 10/15/15
EE 231L Fall 2005 EE 231L Using AHDL to Design State Machines Finite state machine is another name for sequential circuits A two bit up down counter can be described as a state machine with one input and two outputs There are many ways to design state machines using AHDL Here are one design for the two bit up down counter SUBDESIGN twobit count 1 O OUTPUT c l o ck INPUT up INPUT VARIABLE ss MACHINE WITH STATESsO 1 52 SS BEGIN ssclk clock 70 Specify the clock for the state machine 70 CASE 55 IS WHEN SO gt count BquotOOquot IF u 1 THEN ss 1 ELSE ss SS END IF WHEN 51 gt count Bquot01quot IF up 1 THEN ss 2 ELSE ss sO END IF WHEN 52 gt EE 231L Fall 2005 count Bquot10quot IF up 1 THEN ss 3 ELSE ss sl END IF count Bquot11quot IF up 1 THEN ss sO ELSE ss 2 END IF END CASE END The two bit up down counter is a Moore machine 7 ie7 the outputs of the machine depend only on the current state7 and not on the current input You can design a Moore machine by speci ng a bit pattern associated with each state In this example7 we use a state transition table rather than a CASE statement The count 1 0 outputs are directly associated with bits of the state machine This means that the count 1 0 outputs will be the outputs of ip ops7 and will not change value until the machine changes states SUBDESIGN twobit count 1 O OUTPUT clock INPUT up INPUT VARIABLE ss MACHINE OF BITS count10 WITH STATESsO BquotOOquot 1 Bquot01quot 2 Bquot10quot 3 Bquot11quot BEGIN ssclk clock Z Specify the clock for the state machine Z TABLE Z current current next Z Z state input state Z ss up gt ss 50 1 gt 1 1 1 gt 52 2 1 gt 53 SS 1 gt so so 0 gt 3 sl 0 gt 50 2 0 gt 51 3 0 gt 52 END TABLE END EE 231L Fall 2005 You can use AHDL to design state machines with asynchronous outputs7 also called Mealy machines Here is an example from your textbook Ref wlz0 W0z0 C wlzl w0z0 Here is an AHDL le to implement the design This example shows how to reset a state machine When reset goes high7 the machine will be reset to the rst state in the state machine list in this case7 that will be state A The reset is done using the clrn and prn inputs to D ip ops7 so the reset is done as soon as reset goes high it is not necessary to wait for a clock edge When in state E7 the output will be 0 when the input is 07 and the output will be 1 when the input is 1 The output will change multiple times While in state B if the input changes multiple times For a Moore machine7 the output changes only when the machine switches from one state to another SUBDESIGN mealy clock INPUT reset INPUT w INPUT 2 OUTPUT VARIABLE ss MACHINE WITH STATESA B BEGIN ssclk clock Z Specify the clock for the state machine Z ssreset reset Z Specify the reset for the state machine Z CASE ss IS WHEN A gt if w GND THEN z GND ss A else 2 GND ss B END IF WHEN B gt if w 1 THEN z 1 ss B EE 231L Here is the same system SUBDESIGN mealy clock current output 2 0 0 0 1 5 INPUT reset INPUT w INPUT 2 OUTPUT VARIABLE ss MACHINE WITH STATESA B BEGIN ssclk clock ssreset reset TABLE Z current current Z state input ss w gt A 0 gt A 1 gt B 0 gt B 1 gt END TABLE END Fan 2005 designed using a state transition table Z Specify the clock for the state machine Z Z Specify the reset for the state machine Z next Z state Z ss A B A B 1 Note that this just describes in a table what the state diagram described in a gure


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Jim McGreen Ohio University

"Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

Allison Fischer University of Alabama

"I signed up to be an Elite Notetaker with 2 of my sorority sisters this semester. We just posted our notes weekly and were each making over $600 per month. I LOVE StudySoup!"

Bentley McCaw University of Florida

"I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"

Parker Thompson 500 Startups

"It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.