ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Embedded Systems  >>  VLSI
 
 


 

 
 86 Family interview questions  86 Family Interview Questions
 VLSI interview questions  VLSI Interview Questions
 DSP interview questions  DSP Interview Questions
 Embedded Systems AllOther interview questions  Embedded Systems AllOther Interview Questions
Question
Differences between Signals and Variables in VHDL? If the
same code is written using Signals and Variables what does
it synthesize to?
 Question Submitted By :: Markus
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Differences between Signals and Variables in VHDL? If the same code is written using Signals and Variables what does it synthesize to?
Answer
# 1
Signals updates a value after some "delta" time or at the
end of the process. But variable updates a value immediately.

Both variable and signals are synthesizable. 
Designer should know hoe to use these 2 objects.

Ex: Signal usage
Library IEEE;
use IEEE.std_logic_1164.all;
entity xor_sig is
port (
A, B, C: in STD_LOGIC;
X, Y: out STD_LOGIC
);
end xor_sig;
architecture SIG_ARCH of xor_sig is
signal D: STD_LOGIC;
begin
SIG:process (A,B,C)
begin
D <= A; -- ignored !!
X <= C xor D;
D <= B; -- overrides !!
Y <= C xor D;
end process;
end SIG_ARCH;

Variable usage:
Library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_unsigned.all;
entity xor_var is
port (
A, B, C: in STD_LOGIC;
X, Y: out STD_LOGIC
);
end xor_var;
architecture VAR_ARCH of xor_var is
begin
VAR:process (A,B,C)
variable D: STD_LOGIC;
begin
D := A;
X <= C xor D;
D := B;
Y <= C xor D;
end process;
end VAR_ARCH;
 
Is This Answer Correct ?    2 Yes 1 No
Seetharamukg
 

 
 
 
Other VLSI Interview Questions
 
  Question Asked @ Answers
 
What is the most complicated/valuable program you written in C/C++? Intel6
Implement D flip-flop with a couple of latches? Write a VHDL Code for a D flip-flop? Intel3
Implement an Inverter using a single transistor? Intel1
What is setup time and hold time? Intel1
For a single computer processor computer system, what is the purpose of a processor cache and describe its operation? Intel1
Why is Extraction performed? Intel1
Define threshold voltage? Intel3
A circuit has 1 input X and 2 outputs A and B. If X = HIGH for 4 clock ticks, A = 1. If X = LOW for 4 clock ticks, B = 1. Draw a state diagram for this Spec? Intel1
What products have you designed which have entered high volume production? Intel1
For a 0.18um and 0.8um technology MOSFET, which has a higher cutoff frequency?  1
What types of high speed CMOS circuits have you designed? Intel1
What is polymorphism? (C++) Intel1
How do you detect if two 8-bit signals are same?  4
What is validation? Intel1
Are you familiar with the term MESI? Intel1
What is Fowler-Nordheim Tunneling? Intel1
Explain about stuck at fault models, scan design, BIST and IDDQ testing? Intel1
How many bit combinations are there in a byte? Intel4
How to find the read failiure probablity in SRAM?  1
How do you detect a sequence of "1101" arriving serially from a signal line? nvidia2
 
For more VLSI Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com