T
Taras_96
Hi all
I've just started to learn VHDL having previously coded a bit in
Verilog. I'm aiming to write synthesisable VHDL code at RTL. I'm
having trouble getting my head around concurrent signal assignments.
assignment:
a<=b
c<=a
As at the same time a gets assigned the value of b, and c gets assigned
the OLD value of a. Would a better way of describing concurrent
assignment be "the order of assignment doesn't matter" - this is
because of the event processing/process execution cycles, right?
I'm pretty sure that concurrent assignment from a synthesisable VHDL
point of view just represents how signals will be 'wired'.
a<=b
c<=a
just describes the fact that b is wired to a, and a is wired to c:
----------------b------------
|
a
|
----------------c------------
something like:
a<= b or c
d <= a and c
would represent something like
-----b----------|---|
|OR |-----a-----|----|
-----c----------|---| |AND |
| | |--------d--------
-----------------------|----|
Does this stuff sound right?
Thanks in advance
Taras
PS: I realise I posted not too long before this message. I decided to
put it all into one message would be too big.
I've just started to learn VHDL having previously coded a bit in
Verilog. I'm aiming to write synthesisable VHDL code at RTL. I'm
having trouble getting my head around concurrent signal assignments.
description. One might be tempted to interpret the concurrentFrom what I've read about VHDL, concurrent seems to be a bad
assignment:
a<=b
c<=a
As at the same time a gets assigned the value of b, and c gets assigned
the OLD value of a. Would a better way of describing concurrent
assignment be "the order of assignment doesn't matter" - this is
because of the event processing/process execution cycles, right?
I'm pretty sure that concurrent assignment from a synthesisable VHDL
point of view just represents how signals will be 'wired'.
a<=b
c<=a
just describes the fact that b is wired to a, and a is wired to c:
----------------b------------
|
a
|
----------------c------------
something like:
a<= b or c
d <= a and c
would represent something like
-----b----------|---|
|OR |-----a-----|----|
-----c----------|---| |AND |
| | |--------d--------
-----------------------|----|
Does this stuff sound right?
Thanks in advance
Taras
PS: I realise I posted not too long before this message. I decided to
put it all into one message would be too big.