|
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 STA SKILLS 5
(Q
i
45)
o
e
What
i
will
o
be
q
implemented
r
e
by
i
synthesis
o
q
j
tool
r
e
?
...
integer
i
a,
o
e
b,
i
c
o
;
assign
i
c
o
e
=
i
a
o
+
q
b
r
e
;
...
Ans:
32-bit
i
adder
(Q
i
46)
o
e
What
i
is
o
translate
q
off
r
e
and
i
translate
o
q
j
on
r
e
directives
i
?
www.testbench.in
Ans:
translate
i
off
o
e
and
i
translate
o
on
q
synthesis
r
e
directives
i
are
o
q
j
allowed
r
e
to
i
comment
o
e
out
i
a
o
portion
q
of
r
e
code
i
that
o
q
j
you
r
e
may
i
want
o
to
q
retain for
z
some
i
purpose
o
e
(
i
like
o
simulation
q
)
r
e
other
i
than
o
q
j
synthesis.
//
i
code
o
e
for
i
synthesis
...
//
i
exemplar
o
e
translate
i
off
$display
i
(.....);
o
e
//
i
not
o
for
q
synthesis
//
i
exemplar
o
e
translate
i
on
.....w.....w......w......t.....e.....s.....t......b.....e.....n.....c.....h......i.....n
//
i
code
o
e
for
i
synthesis
www.testbench.in
...
endmodule
(Q
i
47)
o
e
Unsupported
i
Verilog
o
Features
q
in
r
e
synthesis
i
?
Ans:
'
i
UDP
o
e
primitives
'
i
specify
o
e
block
'
i
real
o
e
variables
i
and
o
constants
'
i
initial
o
e
statement
www.testbench.in
'
i
tri0,
o
e
tri1,
i
tri1,
o
tri1,
q
tri1,
r
e
net
i
types
'
i
time
o
e
data
i
type
'
i
Named
o
e
events
i
and
o
event
q
triggers
'
i
The
o
e
following
i
gates:
o
pulldown,
q
pullup,
r
e
nmos,
i
mmos,
o
q
j
pmos,rpmos,
r
e
cmos,
i
rcmos,
o
tran,
q
rtran, tranif0,
z
rtranif0,
u
y
tranif1,
e
o
rtranif1
z
x
'
i
wait
o
e
statements
'
i
Parallel
o
e
block,
i
join
o
and
q
fork.
'
i
System
o
e
task
i
enable
o
and
q
system
r
e
function
i
call
'
i
force
o
e
statement
.....w.....w......w......t.....e.....s.....t......b.....e.....n.....c.....h......i.....n
'
i
release
o
e
statement
'
i
Blocking
o
e
assignment
i
with
o
event
q
control
www.testbench.in
'
i
Concatenation
o
e
in
i
port
o
specification
'
i
Bit
o
e
selection
i
in
o
port
q
specification
'
i
Procedural
o
e
assign
i
and
o
de-assign
'
i
Edge
o
e
triggers
i
on
o
sensitivity
q
list
r
e
must
i
be
o
q
j
single
r
e
bit
i
variable,
o
or
q
array indexing
z
expression.
'
i
Indexing
o
e
of
i
parameters
o
is
q
not
r
e
allowed.
'
i
Loops
o
e
must
i
be
o
bounded
q
by
r
e
constants
i
or
o
q
j
contain
r
e
(@
i
posedge
o
clk)
q
statement.
'
i
Delay
o
e
and
i
delay
o
control.
(Q
i
48)
o
e
Zero
i
setup
o
&
q
Hold
r
e
time
i
?
www.testbench.in
Ans:
A
i
zero
o
e
setup
i
time
o
means
q
that
r
e
the
i
time
o
q
j
for
r
e
the
i
data
o
to
q
propagate within
z
the
u
y
component
e
o
and
z
x
load into the latch is equal to the time for the clock to propagate and trigger the latch. A zero hold time means that the clock path delay is equal to the data path delay. (Practically zero time is not possible coz it causes metastability)
(Q
i
49)
o
e
Negative
i
setup
o
&
q
hold
r
e
time
i
?
Ans:
A
i
negative
o
e
setup
i
time
o
means
q
that
r
e
the
i
time
o
q
j
for
r
e
the
i
data
o
to
q
propagate within
z
u
y
the
e
o
component
z
x
and load into the latch is larger to the time for the clock to propagate and trigger the latch. A negative hold time means that the clock path delay is lesser then the data path delay.
.....w.....w......w......t.....e.....s.....t......b.....e.....n.....c.....h......i.....n
(Q
i
50)
o
e
Reset
i
removal
o
time
q
?
www.testbench.in
Ans:
Minimum
i
time
o
e
required
i
to
o
de-assert
q
the
r
e
reset
i
before
o
q
j
the
r
e
clock
i
edge
o
is
q
called reset
z
removal
u
y
time.
(Q
i
51)
o
e
Reset
i
recovery
o
time
q
?
Ans:
Minimum
i
time
o
e
required
i
to
o
assert
q
the
r
e
reset
i
after
o
q
j
the
r
e
clock
i
edge
o
is
q
called reset
z
recovery
u
y
time.
(Q
i
52)
o
e
Is
i
Initial
o
statement
q
is
r
e
synthesizable
i
?
www.testbench.in
Ans:
Yes
i
it
o
e
is;
i
If
o
respective
q
attribute
r
e
is
i
written
module
i
rom_2dimarray_initial
o
e
(
i
o
e
i
o
q
r
e
i
o
q
j
r
e
i
o
q
z
u
y
e
o
z
x
output wire [3:0] z,
i
o
e
i
o
q
r
e
i
o
q
j
r
e
i
o
q
z
u
y
e
o
z
x
input wire [2:0] a
i
o
e
i
o
q
r
e
i
o
q
j
r
e
i
o
q
z
u
y
e
o
z
x
); // address- 8 deep memory
.....w.....w......w......t.....e.....s.....t......b.....e.....n.....c.....h......i.....n
//
i
Declare
o
e
a
i
memory
o
rom
q
of
r
e
8
i
4-bit
o
q
j
registers.
r
e
The
i
indices
o
are
q
0 to
z
7:
(*
i
synthesis,
o
e
rom_block
i
=
o
"
ROM_CELL
q
XYZ01
"
r
e
*)
i
reg
o
q
j
[3:0]
r
e
rom[0:7];
//
i
(*
o
e
synthesis,
i
logic_block
o
*)
q
reg
r
e
[3:0]
i
rom
o
q
j
[0:7];
www.testbench.in
initial
i
begin
i
o
e
rom[0]
i
=
o
4'b1011;
i
o
e
rom[1]
i
=
o
4'b0001;
i
o
e
rom[2]
i
=
o
4'b0011;
i
o
e
rom[3]
i
=
o
4'b0010;
i
o
e
rom[4]
i
=
o
4'b1110;
i
o
e
rom[5]
i
=
o
4'b0111;
i
o
e
rom[6]
i
=
o
4'b0101;
i
o
e
rom[7]
i
=
o
4'b0100;
www.testbench.in
end
i
o
e
assign
i
Z
o
=
q
rom[a];
endmodule
(Reference
i
IEEE
o
e
Synthsis
i
LRM)
o
.....w.....w......w......t.....e.....s.....t......b.....e.....n.....c.....h......i.....n
(Q
i
53)
o
e
Will
i
the
o
clock
q
gating
r
e
affect
i
the
o
q
j
setup/hold
r
e
time
i
of
o
the
q
flop ?
Ans:
No..Initialy
i
it
o
e
seems
i
the
o
we
q
need
r
e
to
i
add
o
q
j
cell
r
e
delay,
i
but
o
if
q
we consider
z
clock
u
y
tree
e
o
then
z
x
we can say that there are lot of buffers are coming in the path, do we adding that also ? No, correct..!!
www.testbench.in
(Q
i
54)
o
e
Setup
i
is
o
depend
q
on
r
e
clock
i
but
o
q
j
hold
r
e
not..!
i
why
o
?
Ans:
Setup
i
=
o
e
valid
i
data
o
should
q
present
r
e
before
i
clock,
o
q
j
so
r
e
it
i
is
o
clearly
q
clock is
z
coming
u
y
into
e
o
picture
z
x
but for hold flop is coming into picture, thats why hold is not depending on clock.
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!