Consider the following Verilog code segment:
wire [5:0] A, B;
wire C; assign C = ^A;
If the values of A and B are 5'b10011 and 5'b01110 respectively,
what will be the value of {A[3:1], 2{C}, B[2:0]}
Veriog Module1
Quiz
•
Education
•
University
•
Medium
Mr.G. Ravi Kumar Reddy undefined
Used 1+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following Verilog code segment:
wire [5:0] A, B;
wire C; assign C = ^A;
If the values of A and B are 5'b10011 and 5'b01110 respectively,
what will be the value of {A[3:1], 2{C}, B[2:0]}
00100110
00111110
01111110
None of these
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which combinational logic is generated by the following code segment?
input I0,I1;
input sel;
output f;
assign f = sel ? I1 : I0;
1X2 Demultiplexer
2x1 multiplexer
4x1 multiplexer
tri state buffer
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What combinational circuit do the following verilog module implement?
module example(a,b,c,f1,f2);
input a,b,c;
output f1,f2;
wire w1,w2,w3;
xor x1(w1,a,b);
xor x2(f1,w1,c);
and a1(w2,a,b);
and a2(w3,w1,c);
or(f2,w2,w3);
endmodule
full adder
Half adder
Multiplexer
3 to 8 decoder
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How will the number -8'd5 (in Verilog) be internally represented as bits?
1111 1110
1111 1100
1111 0000
1111 1011
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a system task?
always block
initial block
$display
assign statement
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following does not represent a behavioral representation for the function
f = A.B +B.C + C.A?
A truth table of the function f
The Verilog specification: assign f = (A & B) | (B & C) | (C & A);
A netlist consisting of three 2-input AND and one 3-input OR gate
None of these
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
For the following Verilog code segment, if the initial value of IR is 2D00 023A (in hexadecimal), what will be the value of “memaddr” in decimal?
wire [31:0] IR;
wire [7:0] opcode;
wire [23:0] address;
wire [23:0] memaddr;
assign opcode = IR[31:24];
assign address = IR[23:0];
assign memaddr = address + 100;
685
670
723
None of these
10 questions
Spot The Hazards
Quiz
•
University
10 questions
PHP BASIC
Quiz
•
University
11 questions
PASSIVE FORMS - NAUTICAL TERMINOLOGY
Quiz
•
University
7 questions
MEASUREMENT AND EVALUATION
Quiz
•
University
10 questions
CHALLENGES OF MULTIGRADE TEACHING
Quiz
•
University
6 questions
Dewey's learning theory
Quiz
•
University
10 questions
Problem-Based & Project-Based Learning
Quiz
•
University
10 questions
Dry Run
Quiz
•
University
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
12 questions
Multiplying Fractions
Quiz
•
6th Grade
30 questions
Biology Regents Review #1
Quiz
•
9th Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
16 questions
Chapter 8 - Getting Along with your Supervisor
Quiz
•
3rd Grade - Professio...
6 questions
Railroad Operations and Classifications Quiz
Quiz
•
University
71 questions
Logos
Quiz
•
3rd Grade - University
8 questions
Mali - Geography
Quiz
•
University