Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > exporting variables

Reply
Thread Tools

exporting variables

 
 
AB
Guest
Posts: n/a
 
      03-09-2006
Hi all,

I have a variable in one component:

constant number : bus7 := "0001000";

But, is there any way of using this variale in another a component of my
circuit?

I know how to connect components together, but the component with the
variable, has no inputs or outputs just variables.

Thanks,
Kay


 
Reply With Quote
 
 
 
 
Mike Treseler
Guest
Posts: n/a
 
      03-09-2006
AB wrote:

> I have a variable in one component:
> constant number : bus7 := "0001000";
> But, is there any way of using this variale in another a component of my
> circuit?


That is a constant, not a variable.
Constants can be shared by declaring
them in a package and adding a USE statement
to each unit that needs it.

> I know how to connect components together, but the component with the
> variable, has no inputs or outputs just variables.


A structural design can
only share register values using signals.

The only way to share variables across
a design entity is to use a single process
style.


-- Mike Treseler
 
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
Put variables into member variables or function variables? tjumail@gmail.com C++ 9 03-23-2008 04:03 PM
Session Variables and Static Variables cobus.lombard@gmail.com ASP .Net 1 03-26-2006 11:05 AM
Accessing class member variables - properties or variables? dwok Java 7 03-04-2005 03:54 AM
Exporting variables from a hash pmak@aaanime.net Perl Misc 4 09-16-2004 12:13 PM
Re: Class public shared Variables vs. Application Variables in ASP.NET avnrao ASP .Net 0 05-07-2004 05:28 AM



Advertisments