Interviewer And Interviewee Guide

Electrical Engineering Interview Question:

What is the difference between the following two lines of Verilog code?

Submitted by: Administrator
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;".
The value assigned to a will be the value of b 5 time units hence.

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.
Submitted by: Administrator

Read Online Electrical Engineering Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.