Published on 20 Apr 2013

Department

Computer Science

Course

CSC258H1

Professor

Week 3 Review

o Q1

A. write 78 as 8 bit binary

01001110

B. what’s the two’s complement of 01101101

10010011

C. What is the sum of 01101101 and 01101101

11011010

shift over by 1, like multiple by 2 since it’s adding

something to itself

o Q2 What groupings are in the K-map

What logic equations do these groupings represent?

o Q3 Implement a half adder in Verilog.

Step 1 : What is the half adder logic equation?

Step 2: Equivalent Verilog components

Or:

and(c,x,y);

xor(s,x,y);

Step 3: Complete the Verilog