. Considering the code below, at what time step will b=0? initial begin a c=#10 1'b1; b= #20 1'b0; C= #40 1b1; end a) At time 10 b) At time 20 ) At time 30 d) At time 40 e) At time 70 2- An "if" statement must always be inside an "always" block. This statement is a) True if there is an event controloperator b) False if there is an event controloperator c) True d) False e) "If" does not apply in this case 3- Consider the following code, which one of the following statements is not true? module circuit(out, A, B, s); output out; input A, B; input s; assign out =(s)? A: B; end module a) The code represents a combinational circuit. b) Dataflow modeling is used. c) Ternary operators are used. d) There are no false statements in the given options e) The circuit represents a 2 to 1 line multiplexer

Introductory Circuit Analysis (13th Edition)
13th Edition
ISBN:9780133923605
Author:Robert L. Boylestad
Publisher:Robert L. Boylestad
Chapter1: Introduction
Section: Chapter Questions
Problem 1P: Visit your local library (at school or home) and describe the extent to which it provides literature...
icon
Related questions
Question

This QUESTION FROM ADVANCED DIGITAL SYSTEMS DESIGN course.

1- Considering the code below, at what time step will b=0?
initial
begin
a <= #10 1'b1;
b<= #20 1'b0;
C<= #40 1'b1;
end
a) At time 1O
b) At time 20
c) At time 30
d) At time 40
e) At time 70
2 An "if" statement must always be inside an "always" block. This statement is
a) True if there is an event controloperator
b) False if there is an event controloperator
c) True
d) False
e) "if" does not apply in this case
3- Consider the following code, which one of the following statements is not true?
module circuit(out, A, B, s);
output out;
input A, B;
input s;
assign out =(s)? A: B;
end
module
a) The code represents a combinational circuit.
b) Dataflow modeling is used.
c) Ternary operators are used.
d) There are no false statements in the given options
e) The circuit represents a 2 to 1 line multiplexer
4 Considerthe following code:
initial
begin
clock = 1'b%;
repeat (30)
# 1 clock = -clock;
end
The total duration of this code is expected to be ?
a) 30 time steps.
b) 60 time steps.
c) 300 time step.
d) 50 time step.
e) None of the given
%3D
%3D
Page 2 of 8
Transcribed Image Text:1- Considering the code below, at what time step will b=0? initial begin a <= #10 1'b1; b<= #20 1'b0; C<= #40 1'b1; end a) At time 1O b) At time 20 c) At time 30 d) At time 40 e) At time 70 2 An "if" statement must always be inside an "always" block. This statement is a) True if there is an event controloperator b) False if there is an event controloperator c) True d) False e) "if" does not apply in this case 3- Consider the following code, which one of the following statements is not true? module circuit(out, A, B, s); output out; input A, B; input s; assign out =(s)? A: B; end module a) The code represents a combinational circuit. b) Dataflow modeling is used. c) Ternary operators are used. d) There are no false statements in the given options e) The circuit represents a 2 to 1 line multiplexer 4 Considerthe following code: initial begin clock = 1'b%; repeat (30) # 1 clock = -clock; end The total duration of this code is expected to be ? a) 30 time steps. b) 60 time steps. c) 300 time step. d) 50 time step. e) None of the given %3D %3D Page 2 of 8
Expert Solution
Step 1

1) #20 means at t = 20 b evaluate and assigned to 0 

Option is correct

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Introductory Circuit Analysis (13th Edition)
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:
9780133923605
Author:
Robert L. Boylestad
Publisher:
PEARSON
Delmar's Standard Textbook Of Electricity
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Electrical Engineering
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education
Fundamentals of Electric Circuits
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:
9780078028229
Author:
Charles K Alexander, Matthew Sadiku
Publisher:
McGraw-Hill Education
Electric Circuits. (11th Edition)
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:
9780134746968
Author:
James W. Nilsson, Susan Riedel
Publisher:
PEARSON
Engineering Electromagnetics
Engineering Electromagnetics
Electrical Engineering
ISBN:
9780078028151
Author:
Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:
Mcgraw-hill Education,