



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Exam; Class: COMPUTER ORGANIZATIO; Subject: Electrical Engineering; University: Louisiana State University; Term: Fall 2001;
Typology: Exams
1 / 7
This page cannot be seen from the preview
Don't miss anything!




Name
29 October 2001, 12:40-13:30 CST
Alias
Problem 1 (16 pts)
Problem 2 (16 pts)
Problem 3 (20 pts)
Problem 4 (16 pts)
Problem 5 (16 pts)
Problem 6 (16 pts)
Good Luck!
wire. Use the generate and propagate signals.
(16 pts)
module cla_32(sum,a,b); input [31:0] a, b; output [32:0] sum;
wire [31:0] g, p, carry;
// Code for other carry signals omitted. // // Start answer here ↓
assign carry[5] =
cla_slice s0(sum[0],g[0],p[0],a[0],b[0],carry[0]); cla_slice s1(sum[1],g[1],p[1],a[1],b[1],carry[1]); cla_slice s2(sum[2],g[2],p[2],a[2],b[2],carry[2]); // Code for other cla_slices omitted. cla_slice s5(sum[5],g[5],p[5],a[5],b[5],carry[5]); // Code for other cla_slices omitted.
endmodule
in Homework 2 Problem 2. The input bit is valid on the positive edge of clk, that bit is the first of a new sequence if reset is high. The output, lrun, must be the longest number of consecutive 1 ’s encountered since the last time reset was 1. For example, after 00111010 is received the output should be 3 since that is the length of the longest run of 1 ’s. Also see the example timing below. As in Homework 2 the module must synthesize to sequential logic. (20 pts)
0 1 2 3 0 1
0 40 80 120
/tlr/lrun 0 1 2 3 0 1 /tlr/bit /tlr/clk /tlr/reset
module longest_run(lrun,bit,reset,clk); output [31:0] lrun; input bit, reset, clk;
endmodule
(edge- or level-triggered) of any registers synthesized.
(16 pts)
module syn(x,r,a,b,m,neg); input [31:0] a, b; input m, neg; output [31:0] x, r;
reg [31:0] x, r, bn;
always @( a or b or m or neg ) begin
if( neg ) bn = -b; else bn = b;
x = a + bn;
if( m ) r = x + b;
end
endmodule
the streamlined signed multiplier). (16 pts)
(a) Compared to the streamlined signed multiplier, what additional hardware is needed for a high- radix Booth multiplier?
(b) Name two advantages that a high-radix Booth multiplier has over an ordinary high-radix mul- tiplier.