wrote:
> As far as I believe, there is no concept of a single physical wire in
> VHDL ,
In VHDL you can define input and output signals in the "port" section. If
you use "signal" inside a "architecture" section in VHDL, it is really the
same like Verilog, because "wire" is not a physical wire in verilog, too
and doesn't need to be a single wire, e.g. you can write "wire [7:0]
my_bus;", which is the same like "signal my_bus : std_logic_vector(7 downto
0);" in VHDL. And in VHDL you can define single bit signals, too, like int
"signal my_bit : std_logic;".
> what signals could have possibly meant and what I feel after reading
> about it is that,it is a source in an entity. ( if we are to extentd
> the concept of source to sink in VHDL )
No, it is more like a variable in computer programs. E.g. you can define a
state type like this:
type STATE_TYPE IS (IDLE, FOO, BAR);
Then you can use this type for a signal:
signal state : STATE_TYPE;
and in a process you can assign values to it and read from it:
process(reset, clk)
begin
if reset='1' then
state <= IDLE;
elsif rising_edge(clk) then
case state is
when IDLE =>
if something_interesting then
state <= FOO;
end if;
when FOO =>
if something_more_intersting then
state <= BAR;
end if;
when BAR =>
if unintersting then
state <= IDLE;
end if;
end case;
end if;
end process;
I think this is the same with "wire" in Verilog.
--
Frank Buss,
http://www.frank-buss.de,
http://www.it4-systems.de