Verilog FAQ Interview Questions
Verilog FAQ Interview Questions
Interview
Questions
https://www.linkedin.com/in/vivek-arya-532558143
Difference between continuous assignment and procedural
assignment
procedural Assignment
I
continuous Assignment
Blocking
assignments Non-blocking
assignments
1.
the
In a
blocking assignment 1.
Non-blocking
assignment
evaluation of the exp- to LHS is scheduled to
ression on RHS is occur when the next
evalu
the
condition are
of race condition. as
avoided updated value
is assigned after evaluation.
5. It
isrepresented 5. It represented
is
by
by (=) operatorsign. KI) operator sign.
https://www.linkedin.com/in/vivek-arya-532558143
For example:- For example: -
I
begin
intial
begin
intial
regl= #152'b 11;
r= #152'bl;
Mega- #521b01;
#52'bol;
regz=
end
initial
always
1 alw
Assignmentin an 1. Assignmentin an
blockbegin
intial to
as
flockalso begin
exete from time
o from time O, and replet
in simulation. forever as a function of
the specif the charges on the blocks
and proud in
2.
Non-synthesizable 2. Synthesizable
3.
3. executed
only once exention
continuously
during simulation. repeats from the begin
to the end of the proces
unless hold wait.
by a
https://www.linkedin.com/in/vivek-arya-532558143
I
Ferample: For example:
y = in1;
end Y y, Sinz;
=
end
Functions Tasks
2. Function Task
always exe-2. may execute in
time,
cute in
zero simulation nonzero simulation
time.
https://www.linkedin.com/in/vivek-arya-532558143
I
they can not have output can pass values
multiple
orinout
arguments. through output and inout
arguments.
4. Function must not 4: taskmay contain day
contain any delay, event event
timing
or
than one
input. smout
define parameter/dyparam
I
define
is
basically A 1. Parameter used to
specify
text substitution macro. constantin a
design
modules can
3.
Only one constant 3.
Multiple
with the given name can have the same parameter
exist in the full scope. is
Name,as it limited
https://www.linkedin.com/in/vivek-arya-532558143
·minmat
thatscope
to
only.
https://www.linkedin.com/in/vivek-arya-532558143
I
input the
double FF
still
needs sation circuitry isnot
diving
deassertion. logic requirement.
far sample:-
for example:-
end
out =0;
Su 0;
=
and end
https://www.linkedin.com/in/vivek-arya-532558143
Difference between full case and parallel case
I
full-case parallel case
1. Indicates that the call 1. Indicates that all case
statement has been items be evaluated
fully and to
not
specified, and all onspecified in parallel and infer
case expression can be
any priorityencoding
optimized away. logic.
I
2b'10: out=2, 361010: out=2,
2b'll: out=xsy; endcast
endcase end
end
2. Outputcan change 20
outputs change only
between changes between when the Lurent
State. state charges.
3. Output can
changes any
30 outputisdelayed by
number
clock
during
of times
which
one
is stable.
cycle,
clock but
a
cycle,
may result
inglitches
on the outputs.
frequency
high
4. Lower No can expect
is expected compared to frequency compare
https://www.linkedin.com/in/vivek-arya-532558143
mealy machine.
I
a moore machiner
4. Hard 4. Easy
to
debug. to
defug,
https://www.linkedin.com/in/vivek-arya-532558143