Homework #2

Homework #2 - true and x and not y or z B101110 sll 3...

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

View Full Document Right Arrow Icon
EEE333 HW#2 Charles Wong Chapter 2. Exercises 1, 6, 7, 8 Chapter 4. Exercise 4. Chapter 5. Exercise 3, 4 1. Write constant declarations for the number of bits in a 32-bit word and for the number π (3.14159). 6. Given the type declaration type state is (off, standby, active1, active2); what are the values of: state’pos(standby) state’val(2) state’succ(active2) state’pred(active1) state’leftof(off) state’rightof(off) 7. For each of the following expressions, indicate whether they are syntactically correct, and if so, determine the resulting value. 2 * 3 + 6 / 4 3 + - 4
Background image of page 1

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

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

Unformatted text preview: true and x and not y or z B101110 sll 3 (B100010 sra 2) & X2C EEE333 HW#2 Charles Wong Chapter 2. Exercises 1, 6, 7, 8 Chapter 4. Exercise 4. Chapter 5. Exercise 3, 4 8. Write a counter model with a clock input clk of type bit , and an output q of type integer . The behavioral architecture body should contain a process that declares a count variable initialized to zero. The process should wait for changes on clk . When clk changes to 1, the process should increment the count and assign its value to the output port....
View Full Document

This note was uploaded on 09/29/2008 for the course ECE 333 taught by Professor Cao during the Spring '08 term at ASU.

Page1 / 2

Homework #2 - true and x and not y or z B101110 sll 3...

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