Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

vhdl process values of signals

Status
Not open for further replies.

bob2987

Junior Member level 1
Joined
Feb 20, 2014
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
192
Hello, I would like to understand this process and what are the values of a,b,c and d steps by steps ?

-----------------------------

Code:
if clk'event and clk ='1' then

a <= b;
b <= c;
c <= d;

end if;

-----------------------------
Imagine, we choose a=1, b=2, c=3, d=10.

Thank you !
 

This is a simple shift register. After 3 clock cycles, a b c and d will all be 10, assuming d never changes.
 

This is a simple shift register. After 3 clock cycles, a b c and d will all be 10, assuming d never changes.

Thank you ! But is it correct to say ? :

After 1 clock cycle a=2;b=3;c=10;d=10;
After 2 clock cycle a=3;b=10;c=10;d=10;
After 3 clock cycle a=10;b=10;c=10;d=10;

Thank you !
 

Yes, that's exactly what Tricky was inferring.
 

Thank you ads-ee because in a pdf document i have seen other results which are:

After 1 clock cycle a=1;b=2;c=10;d=10;
After 2 clock cycle a=1;b=10;c=10;d=10;
After 3 clock cycle a=10;b=10;c=10;d=10;

But i think it's false here.
 

Hi bob, check the authenticity of the pdf.

it will be -
After 1 clock cycle a=2;b=3;c=10;d=10;
After 2 clock cycle a=3;b=10;c=10;d=10;
After 3 clock cycle a=10;b=10;c=10;d=10;

The scenario might be different in case of asynchronous statements where b,c and d are not in the sensitivity list. in that case if d is constant from the beginning i.e. 10 then values of a, b, c and will remain same in simulation.
again sensitivity list does not matter in terms of hardware synthesis.

you can always simulate and check , whenever you have doubt :)
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top