Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > What is the meaning of a signal in VHDL

Reply
Thread Tools

What is the meaning of a signal in VHDL

 
 
parag_paul@hotmail.com
Guest
Posts: n/a
 
      06-22-2007
Hi All,
Is a signal in VHDL supposed to mean that we have a source in the
entity somewhere. Can there be any Verilog analogy to the signal in
VHDL
-Parag

 
Reply With Quote
 
 
 
 
Frank Buss
Guest
Posts: n/a
 
      06-22-2007
wrote:

> Is a signal in VHDL supposed to mean that we have a source in the
> entity somewhere. Can there be any Verilog analogy to the signal in
> VHDL


yes, it's called "wire" in Verilog.

--
Frank Buss,
http://www.frank-buss.de, http://www.it4-systems.de
 
Reply With Quote
 
 
 
 
parag_paul@hotmail.com
Guest
Posts: n/a
 
      06-22-2007
As far as I believe, there is no concept of a single physical wire in
VHDL ,
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 )

 
Reply With Quote
 
Pinhas
Guest
Posts: n/a
 
      06-22-2007

:
> As far as I believe, there is no concept of a single physical wire in
> VHDL ,
> 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 )


It Can be either a wire or reg, if I use verilog analogy. It depends
on the usage.
Pinhas
http://bknpk.no-ip.biz
http://bknpk.no-ip.biz/usb_1.html

 
Reply With Quote
 
Frank Buss
Guest
Posts: n/a
 
      06-22-2007
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
 
Reply With Quote
 
parag_paul@hotmail.com
Guest
Posts: n/a
 
      06-22-2007
Actually in Verilog
you can never write on a wire

like

wire a;

initial
begin
a = 1;
#12
a<=1;
end


Does not work. it will not allow you to do so.
rather, you can have

reg b;
assign a= b;
where a is an wire.
Now when you do

initial
begin
b=1;
#1
=0;
end

THis will be a signal source for the wire a. So I am back to confusion

 
Reply With Quote
 
Mike Treseler
Guest
Posts: n/a
 
      06-22-2007
wrote:

> THis will be a signal source for the wire a. So I am back to confusion


One source of this confusion is that vhdl signals
(or verilog wires) are only strictly needed to wire up
entity/module instances in a structural design.

Signals/Wires are always required in a testbench
to hook up the UUT instance.

Here is a verilog synthesis module using no wires.

http://home.comcast.net/~mike_treseler/div10.v

Here are a few vhdl synthesis designs using no signals.

http://home.comcast.net/~mike_treseler/

-- Mike Treseler
 
Reply With Quote
 
Frank Buss
Guest
Posts: n/a
 
      06-22-2007
wrote:

> Actually in Verilog
> you can never write on a wire


I don't know much about Verilog, but looks like you are right and the
semantic is a bit different. E.g. in this example:

http://www.asic-world.com/tidbits/verilog_fsm.html

there is a function, which calculates the value of a wire. The result is
the same, if you use signals in VHDL with the syntax I've shown in my
previous posting, in Verilog it is just a bit more cumbersome to write,
because you can assign a value only once to a wire. Maybe Mike is right and
using registers in Verilog and variables in VHDL is better, because it
leads to smaller and better to maintain programs.

--
Frank Buss,
http://www.frank-buss.de, http://www.it4-systems.de
 
Reply With Quote
 
parag_paul@hotmail.com
Guest
Posts: n/a
 
      06-22-2007
Dues UUT mean unit under test ( the same thing we call DUT , design
under test
-Parag

 
Reply With Quote
 
parag_paul@hotmail.com
Guest
Posts: n/a
 
      06-22-2007
So the needs only comes in the Test bench scenario. What Mike meant
( if I read between the lines )

An UUT does not require any signals or wires ? Is it?
What about Verilog signals at the top level. Do they give you any
requirement for wire at all ( obviously the top level more often then
not is a test bench)
is the top level module synthesizable
-Parag


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the meaning of "." in VHDL jasonkee111 VHDL 1 12-20-2010 11:15 AM
Understanding search queries, semantics, and "Meaning" ...aren't weall looking for meaning? 5lvqbwl02@sneakemail.com Python 4 01-14-2009 02:28 PM
VHDL-2002 vs VHDL-93 vs VHDL-87? afd VHDL 1 03-23-2007 09:33 AM
threading.Thread vs. signal.signal Jack Orenstein Python 0 09-17-2005 11:24 PM
Async-signal safe functions in signal handlers (unix) Michael Pronath Python 1 01-03-2005 01:10 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57