HardwareBanter

HardwareBanter (http://www.hardwarebanter.com/index.php)
-   General Hardware (http://www.hardwarebanter.com/forumdisplay.php?f=29)
-   -   how can I use a signal defined in one Architecture to another Architecture (http://www.hardwarebanter.com/showthread.php?t=68254)

Muhammad Khan July 9th 03 06:51 PM

how can I use a signal defined in one Architecture to another Architecture
 
Hello everybody,

I want to use the signal defined in one architecture in VHDL to
another architecture. I have two architecture in the same .vhd file
and I am using Component mapping. I required the result of calculation
of a signal to be used in second architecture. Can any one tell how to
defined signal so that it is globally visible to other architectures.

Regards

Khan

Mario Trams July 9th 03 09:30 PM

Muhammad Khan wrote:

I want to use the signal defined in one architecture in VHDL to
another architecture. I have two architecture in the same .vhd file
and I am using Component mapping. I required the result of calculation
of a signal to be used in second architecture. Can any one tell how to
defined signal so that it is globally visible to other architectures.


Hello Muhammad,

this is a common question.

The clean way for handling this is to feed the signal through
the port maps.

Regards,
Mario

--
----------------------------------------------------------------------
Digital Force / Mario Trams

Chemnitz University of Technology
http://www.tu-chemnitz.de/~mtr
Dept. of Computer Science Tel.: (+49) 371 531 1660
Chair of Computer Architecture Fax.: (+49) 371 531 1818
----------------------------------------------------------------------

Jon July 9th 03 11:20 PM

Hi Khan,
If you declare a signal in a package and you include the package
then the signal can be globally used by all architectures that
reference that package. This is for simulation only and will not
work for synthesis.

Jon


(Muhammad Khan) wrote in message . com...
Hello everybody,

I want to use the signal defined in one architecture in VHDL to
another architecture. I have two architecture in the same .vhd file
and I am using Component mapping. I required the result of calculation
of a signal to be used in second architecture. Can any one tell how to
defined signal so that it is globally visible to other architectures.

Regards

Khan


Ken McElvain July 10th 03 05:11 AM



Jon wrote:

Hi Khan,
If you declare a signal in a package and you include the package
then the signal can be globally used by all architectures that
reference that package. This is for simulation only and will not
work for synthesis.



This will work for synthesis in Synplify Pro 7.3.



Jon


(Muhammad Khan) wrote in message . com...

Hello everybody,

I want to use the signal defined in one architecture in VHDL to
another architecture. I have two architecture in the same .vhd file
and I am using Component mapping. I required the result of calculation
of a signal to be used in second architecture. Can any one tell how to
defined signal so that it is globally visible to other architectures.

Regards

Khan




All times are GMT +1. The time now is 06:14 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
HardwareBanter.com