Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > diffrence between wire (in verilog) and signal (in vhdl)

Reply
Thread Tools

diffrence between wire (in verilog) and signal (in vhdl)

 
 
mohammed rafi
Guest
Posts: n/a
 
      05-06-2004
Hello everybody,

Please tell me the diffrence between the data types of verilog (wire
and register) and that of VHDL (signal and variabe).
Is wire the verilog equvalent of signal and the register the verilog
equvalent of variable.
 
Reply With Quote
 
 
 
 
ben cohen
Guest
Posts: n/a
 
      05-06-2004
(mohammed rafi) wrote in message news:<. com>...
> Hello everybody,
>
> Please tell me the diffrence between the data types of verilog (wire
> and register) and that of VHDL (signal and variabe).
> Is wire the verilog equvalent of signal and the register the verilog
> equvalent of variable.


In Verilog, a wire is a resolved signal that may have multiple
drivers, or sources. An output port is a wire. A wire cannot be driven
from a an always block.
A "reg" is like a variable in VHDL in that there is no resolotion
function, and can be assigned from multiple always blocks, with the
last assignment from any always block defining the value of this reg
object. However, a reg is also like a signal since it maintains timing
information for scheduling (blocking/nonblocking stuff) and you can
assign to an output port from an always block. The output has the
driver. In synthesis, it is not a good style to assign to a reg
object from multiple always blocks (you need to restrict the
assignment from one always block).

For wires, use the "assign" statement.
-----------------------------------------------------------------------------
Ben Cohen Trainer, Consultant, Publisher (310) 721-4830
http://www.vhdlcohen.com/
Author of following textbooks:
* Using PSL/SUGAR for Formal and Dynamic Verification 2nd Edition,
2004 isbn 0-9705394-6-0
* Real Chip Design and Verification Using Verilog and VHDL, 2002 isbn
0-9705394-2-8
* Component Design by Example ", 2001 isbn 0-9705394-0-1
* VHDL Coding Styles and Methodologies, 2nd Edition, 1999 isbn
0-7923-8474-1
* VHDL Answers to Frequently Asked Questions, 2nd Edition, isbn
0-7923-8115
------------------------------------------------------------------------------
 
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
DMA 40-pin/80-Wire with a empty spot on one wire? lcs A+ Certification 1 02-02-2006 09:06 AM
Diffrence between application server and web server ITpro Java 2 10-29-2005 11:17 AM
2 Wire and 3 Wire Telecom Wiring SchoolTech NZ Computing 1 02-26-2005 08:23 AM
Diffrence between ++i and i++ Luai C Programming 12 05-07-2004 09:26 PM
diffrence between signal, variable and wire, register mohammed rafi VHDL 3 05-07-2004 05:56 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