. 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
. 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...
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F2c9b84d6-1870-4011-97be-560a2a5b73d4%2F7c6141f3-e7cd-4929-b46c-bac34925675e%2Ftugl3zf_processed.jpeg&w=3840&q=75)
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
![](/static/compass_v2/shared-icons/check-mark.png)
Step 1
1) #20 means at t = 20 b evaluate and assigned to 0
Option B is correct
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Introductory Circuit Analysis (13th Edition)](https://www.bartleby.com/isbn_cover_images/9780133923605/9780133923605_smallCoverImage.gif)
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:
9780133923605
Author:
Robert L. Boylestad
Publisher:
PEARSON
![Delmar's Standard Textbook Of Electricity](https://www.bartleby.com/isbn_cover_images/9781337900348/9781337900348_smallCoverImage.jpg)
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Electrical Engineering
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education
![Introductory Circuit Analysis (13th Edition)](https://www.bartleby.com/isbn_cover_images/9780133923605/9780133923605_smallCoverImage.gif)
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:
9780133923605
Author:
Robert L. Boylestad
Publisher:
PEARSON
![Delmar's Standard Textbook Of Electricity](https://www.bartleby.com/isbn_cover_images/9781337900348/9781337900348_smallCoverImage.jpg)
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Electrical Engineering
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education
![Fundamentals of Electric Circuits](https://www.bartleby.com/isbn_cover_images/9780078028229/9780078028229_smallCoverImage.gif)
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:
9780078028229
Author:
Charles K Alexander, Matthew Sadiku
Publisher:
McGraw-Hill Education
![Electric Circuits. (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780134746968/9780134746968_smallCoverImage.gif)
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:
9780134746968
Author:
James W. Nilsson, Susan Riedel
Publisher:
PEARSON
![Engineering Electromagnetics](https://www.bartleby.com/isbn_cover_images/9780078028151/9780078028151_smallCoverImage.gif)
Engineering Electromagnetics
Electrical Engineering
ISBN:
9780078028151
Author:
Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:
Mcgraw-hill Education,