VLSI Interview Questions
VLSI Interview Questions
VLSI Interview Questions
$deposit(variable, value);
This system task sets a Verilog register or net to the specified
value. variable is the
register or net to be changed; value is the new value for the
register or net. The value
remains until there is a subsequent driver transaction or another
$deposit task for the
same register or net. This system task operates identically to the
ModelSim
force -deposit command.
The force command has -freeze, -drive, and -deposit options.
When none of these is
specified, then -freeze is assumed for unresolved signals and
-drive is assumed for resolved
signals. This is designed to provide compatibility with force files.
But if you prefer -freeze
as the default for both resolved and unresolved signals.
Verilog interview Questions
22)Will case infer priority register if yes how give an
example?
queue.
Finally, the display statement is placed into the 4th queue. Only
events in the active queue are completed this sim cycle, so the "a
= 0" happens, and then the display shows a = 0. If we were to
look at the value of a in the next sim cycle, it would show 1.
25) What is the difference between the following two lines
of Verilog code?
#5 a = b;
a = #5 b;
#5 a = b; Wait five time units before doing the action for "a =
b;".
a = #5 b; The value of b is calculated and stored in an internal
temp register,After five time units, assign this stored value to a.
26)What is the difference between:
c = foo ? a : b;
and
if (foo) c = a;
else c = b;
The ? merges answers if the condition is "x", so for instance if foo
= 1'bx, a = 'b10, and b = 'b11, you'd get c = 'b1x. On the other
hand, if treats Xs or Zs as FALSE, so you'd always get c = b.
27)What are Intertial and Transport Delays ??
28)What does `timescale 1 ns/ 1 ps signify in a verilog
code?
'timescale directive is a compiler directive.It is used to measure
simulation time or delay time. Usage :
`timescale / reference_time_unit : Specifies the unit of measurement for times
and delays. time_precision: specifies the precision to which the delays are
rounded off.
29) What is the difference between === and == ?
b <= bidir;
a <= inp;
end
endmodule