hw2 solutions

hw2 solutions - EEE 333, ASU Fall 2009, David R. Allee...

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

View Full Document Right Arrow Icon
EEE 333, ASU Fall 2009, David R. Allee Homework #2 Due 22 September 2009 The objective of this homework is to exercise your learning of VHDL syntax, basic module definitions and modeling of combinational logic. You can try to use modelsim to simulate and check your answers. 1. Data Types: Chapter 2 in Ashenden’s book 1.1 Write constant declarations for the number of bits in a 32 bit word and for the number pi(3.14159). constant number_of_bits:integer:=32; constant pi:real:=3.14159; 1.2 Given the type declaration type state is (off, standby, active1, active2) what are the values of state’pos(standby) 1 state’succ(active2) error state’leftof(off) error state’val(2) active1 state’pred(active1) standby state’rightof(off) standby 1.3 For each of the following expressions, indicate whether they are syntactically correct, and if so, determine the resulting value. 2*3+6/4 7 3 + -4 error true and x and not y or z error (assume x,y,z are bit) cat0 B”101110”
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 09/28/2009 for the course EEE 352/333 taught by Professor Allee during the Fall '09 term at ASU.

Page1 / 3

hw2 solutions - EEE 333, ASU Fall 2009, David R. Allee...

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