|
HOME
|
ABOUT
|
ARTICLES
|
ACK
|
FEEDBACK
|
TOC
|
LINKS
|
BLOG
|
JOBS
|
Tutorials
SystemVerilog
Verification
Constructs
Interface
OOPS
Randomization
Functional Coverage
Assertion
DPI
UVM Tutorial
VMM Tutorial
OVM Tutorial
Easy Labs : SV
Easy Labs : UVM
Easy Labs : OVM
Easy Labs : VMM
AVM Switch TB
VMM Ethernet sample
Verilog
Verification
Verilog Switch TB
Basic Constructs
OpenVera
Constructs
Switch TB
RVM Switch TB
RVM Ethernet sample
Specman E
Interview Questions
TEST YOUR VERILOG SKILLS 6
(Q
i
106)
o
e
i
Find
o
the
q
bug
r
e
in
i
the
o
q
j
following
r
e
code.
for
(............);
begin
.....
end
Ans:
Misplaced
i
semicolons
o
e
in
i
for
-
loops
www.testbench.in
(Q
i
107)
o
e
i
Find
o
the
q
bug
r
e
in
i
the
o
q
j
following
r
e
code.
automatic
i
task
o
e
intra_assign
();
begin
a
i
<=
o
e
#
10
i
b
;
end
ANS
:
Intra
i
assignment
o
e
nonblocking
i
statements
o
are
q
not
r
e
allowed
i
in
o
q
j
automatic
r
e
tasks.
.....w.....w......w......t.....e.....s.....t......b.....e.....n.....c.....h......i.....n
(Q
i
108)
o
e
i
Find
o
the
q
bug
r
e
in
i
the
o
q
j
following
r
e
code.
www.testbench.in
always
i
@
o
e
(
in
)
if
i
(
ena
)
out
i
=
o
e
in
;
else
out
i
=
o
e
1
~Rb1
;
Ans:
simulation
i
mismatch
o
e
might
i
occur.
To
i
assure
o
e
the
i
simulation
o
will
q
match
r
e
the
i
synthesized
o
q
j
logic,
r
e
add
i
"ena"
o
to
q
the event
z
list
u
y
so
e
o
the
z
x
event list reads: always @ (in or ena)
www.testbench.in
(Q
i
109)
o
e
i
Find
o
the
q
bug
r
e
in
i
the
o
q
j
following
r
e
code.
always
i
@
o
e
(
in1
i
or
o
in2
q
or
r
e
sel
)
begin
out
i
=
o
e
in1
;
if
i
(
sel
)
out
i
<=
o
e
in2
;
end
.....w.....w......w......t.....e.....s.....t......b.....e.....n.....c.....h......i.....n
Ans:
Not
i
supported,
o
e
cannot
i
mix
o
blocking
q
and
r
e
nonblocking
i
assignments
o
q
j
in
r
e
an
i
always
o
statement.
www.testbench.in
(Q
i
110)
o
e
i
Find
o
the
q
bug
r
e
in
i
the
o
q
j
following
r
e
code.
reg
i
[
1
:
0
]
o
e
select
;
always
@(
select
)
begin
case
i
(
select
)
00
:
i
y
o
e
=
i
1
;
01
:
i
y
o
e
=
i
2
;
10
:
i
y
o
e
=
i
3
;
11
:
i
y
o
e
=
i
4
;
www.testbench.in
endcase
end
Ans:
branches
i
01
o
e
and
i
11
o
are
q
considered
r
e
as
i
integers
o
q
j
and
r
e
they
i
will
o
never
q
be selected.
(Q
i
111)
o
e
i
Fill
o
the
q
????
.....w.....w......w......t.....e.....s.....t......b.....e.....n.....c.....h......i.....n
fd
i
=
o
e
$fopen
(
"filename"
,
r
);
if
(????)
www.testbench.in
$display
(
"file
i
cannot
o
e
be
i
opened"
);
(Q
i
112)
o
e
i
How
o
to
q
model
r
e
a
i
perfect
o
q
j
buffer
r
e
of
i
10units
o
delay?
a
)
i
#
10
o
e
a
i
=
o
b
;
b
)
i
a
o
e
=
i
#
10
o
b
;
c
)#
10
i
a
o
e
<=
i
b
;
d
)
i
a
o
e
<=
i
#
10
o
b
;
(Q
i
113)
o
e
What
i
is
o
verilog
q
configuration?
www.testbench.in
(Q
i
114)
o
e
Write
i
a
o
code
q
for
r
e
clock
i
generator.
(Q
i
115)
o
e
Write
i
a
o
code
q
for
r
e
clock
i
generator
o
q
j
which
r
e
can
i
generate
o
clock
q
frequency of
z
156MHZ.
(Q
i
116)
o
e
write
i
a
o
verilog
q
code
r
e
to
i
generate
o
q
j
40MHz
r
e
clock
i
with
o
60
q
0uty cycle
.....w.....w......w......t.....e.....s.....t......b.....e.....n.....c.....h......i.....n
(Q
i
117)
o
e
What
i
points
o
need
q
to
r
e
be
i
considered
o
q
j
while
r
e
writing
i
a
o
clock
q
generator???
(Q
i
118)
o
e
Explain
i
verilog
o
event
q
queue.
www.testbench.in
(Q
i
119)
o
e
how
i
the
o
scope
q
of
r
e
a
i
variable
o
q
j
is
r
e
realized
i
in
o
verilog.
q
Illustrate with
z
example.?
(Q
i
120)
o
e
What
i
is
o
incremental
q
compilation?
(Q
i
121)
o
e
What
i
is
o
PLI?
Ans:
PLI
i
is
o
e
a
i
mechanism
o
to
q
invoke
r
e
C
i
subroutines
o
q
j
to
r
e
Verilog.
i
(Q
i
122)
o
e
In
i
what
o
region
q
of
r
e
the
i
event
o
q
j
queue
r
e
,
i
PLI
o
calls
q
are executed?
www.testbench.in
(Q
i
123)
o
e
What
i
is
o
calltf
q
in
r
e
Verilog
i
PLI?
Ans:
Calltf
i
is
o
e
similar
i
to
o
main()
q
function
r
e
in
i
C.
o
q
j
r
e
calltf
i
can
o
call
q
other sub
z
methods
u
y
to
e
o
different
z
x
jobs.
.....w.....w......w......t.....e.....s.....t......b.....e.....n.....c.....h......i.....n
(Q
i
124)
o
e
What
i
is
o
the
q
difference
r
e
between
i
Parallel
o
q
j
and
r
e
Full
i
Connection
o
Module
q
Path delays
z
?
Ans:
A
i
parallel
o
e
connection
i
establishes
o
a
q
connection
r
e
between
i
each
o
q
j
bit
r
e
in
i
the
o
source
q
to each
z
corresponding
u
y
bit
e
o
in
z
x
the destination. Parallel module paths can be created only between one source and one destination where each signal contains the same number of bits.
www.testbench.in
A
i
full
o
e
connection
i
establishes
o
a
q
connection
r
e
between
i
every
o
q
j
bit
r
e
in
i
the
o
source
q
and every
z
bit
u
y
in
e
o
the
z
x
destination. The module path source does not need to have the same number of bits as the module path destination.
(Q
i
125)
o
e
Can
i
$setup
o
and
q
$hold
r
e
check
i
report
o
q
j
a
r
e
violation
i
for
o
a
q
limit of
z
zero?
(Q
i
126)
o
e
Explain
i
about
o
$recovery
q
and
r
e
$removal
i
?
(Q
i
127)
o
e
Which
i
timing
o
check(s)
q
accept
r
e
a
i
negative
o
q
j
limit?
(Q
i
128)
o
e
Can
i
you
o
qualify
q
all
r
e
events
i
in
o
q
j
all
r
e
timing
i
checks
o
with
q
edge specifiers
z
such
u
y
as
e
o
edge
z
x
01?
www.testbench.in
(Q
i
129)
o
e
For
i
which
o
timing
q
check(s)
r
e
must
i
you
o
q
j
always
r
e
qualify
i
events?
(Q
i
130)
o
e
When
i
does
o
$skew
q
report
r
e
a
i
violation?
.....w.....w......w......t.....e.....s.....t......b.....e.....n.....c.....h......i.....n
(Q
i
131)
o
e
What
i
is
o
misctf
q
?
Ans:
Misctf
i
is
o
e
to
i
do
o
housekeeping
q
jobs.
r
e
This
i
is
o
q
j
can
r
e
be
i
called
o
many
q
times unlike
z
other
u
y
predefined
e
o
functions
z
x
which are called once per instance.
www.testbench.in
(Q
i
132)
o
e
i
o
q
r
e
i
o
q
j
r
e
i
What
o
is
q
UDP? Can
z
we
u
y
write
e
o
UDP
z
x
including clock also?
(Q
i
133)
o
e
How
i
do
o
I
q
prevent
r
e
selected
i
parameters
o
q
j
of
r
e
a
i
module
o
from
q
being overridden
z
during
u
y
instantiation?
Index
Functional Verification Questions
Functional Verification Questions 2
Test Your Systemverilog Skills 1
Test Your Systemverilog Skills 2
Test Your Systemverilog Skills 3
Test Your Systemverilog Skills 4
Test Your Sva Skills
Test Your Verilog Skills 1
Test Your Verilog Skills 2
Test Your Verilog Skills 3
Test Your Verilog Skills 4
Test Your Verilog Skills 5
Test Your Verilog Skills 6
Test Your Verilog Skills 7
Test Your Verilog Skills 8
Test Your Verilog Skills 9
Test Your Verilog Skills 10
Test Your Verilog Skills 11
Test Your Verilog Skills 12
Test Your Verilog Skills 13
Test Your Verilog Skills 14
Test Your Verilog Skills 15
Test Your Verilog Skills 16
Test Your Verilog Skills 17
Test Your Specman Skills 1
Test Your Specman Skills 2
Test Your Specman Skills 3
Test Your Specman Skills 4
Test Your Sta Skills 1
Test Your Sta Skills 2
Test Your Sta Skills 3
Test Your Sta Skills 4
Test Your Sta Skills 5
Test Your Sta Skills 6
Test Your Sta Skills 7
Test Your Dft Skills 1
Test Your Dft Skills 2
Test Your Dft Skills 3
Test Your Dft Skills 4
Test Your Uvm Ovm Skills
Report a Bug or Comment on This section
- Your input is what keeps Testbench.in improving with time!