CSCI 320 Homework 6 Solution
Submit all your solutions to Moodle by mid-night on Wednesday March 14.
1. Design a 16x8 memory module in Verilog. Initialize the memory to hold following binary
values:
0000_0000
0000_0001
0000_0010
0000_0100
0000_1000
0001_0
UNCA CSCI 320
Exam 1 Spring 2012
This is a closed book and closed notes exam. Laptops, cell phones, and any other electronic
storage or communication devices may not be used during this exam.
Name:_KEY_
If you want partial credit for imperfect answers, ex
CSCI 320 Homework 3 Combinational Logic
Work the following problems from the back of Chapter 3: 32, 35, 36, and 37. You may work these
problems using LogiSim; and, if so, submit screen captures of your work or submit your LogiSim file. You
must submit you
CSCI 320 HW 3 Solutions
35. How many inputs does a decoder have if it has 32 outputs?
Ans.
5 inputs.
36. How many control lines does a multiplexer have if it has 16 inputs?
Ans.
4 control lines.
CSCI 320 Homework 4 Sequential Logic and Verilog
Submit all your solutions to Moodle by mid-night on Feb 10.
1. Work the following problems from the back of Chapter 3: 53 and 60. You must show your work.
2. For each Verilog module below, sketch (or genera
CSCI 320 Homework 5 FSM
Submit all your solutions to Moodle by mid-night on March 2.
1. Design the FSM for the 2-bit binary counter that you built in lab. Your design must use JK flip-flops,
and it should include:
o
State diagram
o
State transition table
CSCI 320 HW 4 Solutions
Verilog Prob 1.
module combo1 (input a, b, c,
output y);
assign y = a & b & c | a & b & ~c | a & ~b & c;
endmodule
Verilog Prob 2.
module combo2 (input a, b, c,
output y);
wire a_b, a_c, b_c, a_bOra_c;
and(a_b, a, b);
and(a_c, a, c
HARDWARE EXERCISE 3: 2-Bit Binary Counter
Objective:
In this hardware exercise, we will implement a 2-bit binary counter-the least
significant 2 bits of the 4-bit binary counter shown on page 157 of your text and
repeated below.
Required Hardware:
Your br
CSCI 320 Homework 6 Memory
Submit all your solutions to Moodle by mid-night on Wednesday March 14.
1. Design a 16x8 memory module in Verilog. Initialize the memory to hold following binary
values:
0000_0000
0000_0001
0000_0010
0000_0100
0000_1000
0001_000
CSCI 320
Smotherman Paper Quiz (20 points total)
1. (1 percent) As shown in Fig. 1 of the Smotherman paper (or Fig 4.18 of your text), what is
the function of the decoder?
2. (2 percent) For each of the four assembly language instructions supported by the
HARDWARE EXERCISE 2: COMBINATIONAL LOGIC DESIGN USING
74xx ICs
Objective:
Using three switches, A, B and C, sound a warning buzzer (implemented by your 555 timer
circuit) when the following conditions apply:
a.
b.
c.
d.
Switches A, B, C are all on.
Switch
CSCI 320
Smotherman Paper Quiz Solutions
1. (1 percent) As shown in Fig. 1 of the Smotherman paper (or Fig 4.18 of your text), what is
the function of the decoder?
ANS: The input to the decoder is the op code portion of the instruction. The output of the