Motherboard Point

Go Back   Motherboard Point > General > Hardware
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-09-2003, 06:51 PM
 
Muhammad Khan


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
Reply With Quote
  #2  
Old 07-09-2003, 09:30 PM
 
Mario Trams
Default Re: how can I use a signal defined in one Architecture to another Architecture

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
----------------------------------------------------------------------
Reply With Quote
  #3  
Old 07-09-2003, 11:20 PM
 
Jon
Default Re: how can I use a signal defined in one Architecture to another Architecture

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 news:<. 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

Reply With Quote
  #4  
Old 07-10-2003, 05:11 AM
 
Ken McElvain
Default Re: how can I use a signal defined in one Architecture to another Architecture



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 news:<. 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
>>


Reply With Quote
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 06:03 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.