Question: You are given two code snippets ( a and b ) below that perform the same operations to its internal signals, based on an input
You are given two code snippets a and b below that perform the same
operations to its internal signals, based on an input signal inp. What is
the difference if any in the digital circuit generated by these snippets?
marks
code a
always @ begin
d a t a s t i n p ;
l o o p v a r d a t a s t ;
l o o p e n d l o o p v a r b
: b ;
end
code b
always @ posedge c l k begin
d a t a s t i n p ;
l o o p v a r d a t a s t ;
l o o p e n d l o o p v a r
b : b ;
end
Page of
Trinity
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
