Changes

Jump to navigation Jump to search
243 bytes added ,  18:54, 6 July 2007
no edit summary
Line 542: Line 542:  
You give the component an identifier.  Customarily engineers use the U numbering system (U followed by a number, starting at 1 and going until you run out of components).  But you can give the component map any identifier you see fit.  Then you give the component name, the words "port map", then a list of signals or pins.  The signal listed first in the port map will be connected to the pin listed first in the component declaration, and so on down the line.  And that's all you have to do to include components in your design.  The synthesizer will retrieve the appropriate code and make the connections for you.
 
You give the component an identifier.  Customarily engineers use the U numbering system (U followed by a number, starting at 1 and going until you run out of components).  But you can give the component map any identifier you see fit.  Then you give the component name, the words "port map", then a list of signals or pins.  The signal listed first in the port map will be connected to the pin listed first in the component declaration, and so on down the line.  And that's all you have to do to include components in your design.  The synthesizer will retrieve the appropriate code and make the connections for you.
    +
== Extras ==
    +
=== VHDL Resolution Table ===
   −
== VHDL Resolution Table ==
+
VHDL STD_LOGIC and STD_LOGIC_VECTOR both operate on 9-value logic defined by IEEE.  The nine states are:
 +
* U: uninitialized
 +
* X: forcing unknown
 +
* 0: forcing 0
 +
* 1: forcing 1
 +
* Z: high impedance
 +
* W: weak unknown
 +
* L: weak 0
 +
* H: weak 1
 +
* –: don't care
 +
 
 +
If you have two or more drivers for the same line, then VHDL must somehow resolve the conflict.  The resolution table is given below.
    
{| style="text-align:center"
 
{| style="text-align:center"
|+VHDL Resolution Table
+
|+ '''VHDL Resolution Table'''
 
|-
 
|-
 
!  !! U !! X !! 0 !! 1 !! Z !! W !! L !! H !! –
 
!  !! U !! X !! 0 !! 1 !! Z !! W !! L !! H !! –
Line 578: Line 591:  
| U || X || X || X || X || X || X || X || X
 
| U || X || X || X || X || X || X || X || X
 
|}
 
|}
  −
VHDL Logic States
  −
* U: uninitialized
  −
* X: forcing unknown
  −
* 0: forcing 0
  −
* 1: forcing 1
  −
* Z: high impedance
  −
* W: weak unknown
  −
* L: weak 0
  −
* H: weak 1
  −
* –: don't care
 
461

edits

Navigation menu