signales in processes VHDL

Guest #5166516
Rate this post
• ▲ useful
▼ not useful
1 entity klausurCircuit is
2 end klausurCircuit;
3
4 architecture behavior of klausurCircuit is
5 signal a,b,c,d,e,f : bit;
6 begin
7
8 process (a,b)
9 begin
10 c <= not (a and b) after 6 ns;
11 d <= not (b or c) after 5 ns;
12 end process;
13
14 process (a,c)
15 begin
16 e <= transport c xor a after 5 ns;
17 end process;
18
19 end architecture behavior;

what I don't understand is when you have in process(a,b) two signales 
what does that mean, when will the d change. Is what I made correct.

Thank you for the explanation, I am new to Vhdl just trying to 
understand how it works.

Best Regards
Attached files:
Moderator (Company: Titel) #5180736
Rate this post
• ▲ useful
▼ not useful
Oussama wrote:
> 8 process (a,b)
> 9 begin
> 10 c <= not (a and b) after 6 ns;
> 11 d <= not (b or c) after 5 ns;
> 12 end process;
Just as a hint: this process has an incomplete sensitivity list. 'c' is 
missing. So the solution is fairly tricky, because c changes 6ns after a 
or b has changed. But because c is missing in the sensitivity list the 
process is not evaluated again and d does not change.
I recommend to ask your teacher about that sensitivity list...

For the signal e you should calculate a xor-signal e' without delay. And 
then simply shift that e' for 5ns.
Guest #5182610
Rate this post
• ▲ useful
▼ not useful
process (a,b)
d <= not (b or c) after 5 ns;

is a method to describe a gate because c is progressed into d only when 
b is active so any changes of c at others poits of time are not 
relevant.

this way also clocks are simulated finally by converting the rising edge 
command into a signal which is active for one simulation step only
Moderator (Company: Titel) #5182687
Rate this post
• ▲ useful
▼ not useful
Klakx wrote:
> .. bad design practice
Because simulation result will not be the same like the behaviour of the 
synthesized design.
So this "cute insider trick" is ugly coding no one will understand a 
half year later. Even the coder himself. If this kind of coding is 
teached anywhere then the school and the teacher is not worth the money!

Lothar M. wrote:
> I recommend to ask your teacher about that sensitivity list...
I strongly recommend...

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.