Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Black boxing direct instantiation

Reply
Thread Tools

Black boxing direct instantiation

 
 
Tricky
Guest
Posts: n/a
 
      10-25-2010
If I had a component declaration, I could easily black box it like
this:

attribute black_box : boolean;
attribute black_box of my_logic : component is true;

But how can I attach the same attribute to a direct instantiation
version of my_logic?
 
Reply With Quote
 
 
 
 
Andy
Guest
Posts: n/a
 
      10-25-2010
On Oct 25, 9:25*am, Tricky <(E-Mail Removed)> wrote:
> If I had a component declaration, I could easily black box it like
> this:
>
> attribute black_box : boolean;
> attribute black_box of my_logic : component is true;
>
> But how can I attach the same attribute to a direct instantiation
> version of my_logic?


Does the following not work?

attribute black_box of my_logic : entity is true;

Andy
 
Reply With Quote
 
 
 
 
Tricky
Guest
Posts: n/a
 
      10-26-2010
On Oct 25, 4:47*pm, Andy <(E-Mail Removed)> wrote:
> On Oct 25, 9:25*am, Tricky <(E-Mail Removed)> wrote:
>
> > If I had a component declaration, I could easily black box it like
> > this:

>
> > attribute black_box : boolean;
> > attribute black_box of my_logic : component is true;

>
> > But how can I attach the same attribute to a direct instantiation
> > version of my_logic?

>
> Does the following not work?
>
> attribute black_box of my_logic : entity is true;
>
> Andy


No, because technically "my_logic" doesnt exist yet. The component
method gives the compiler a port definition to compare the port map of
the instantiation against, and black box tells the compiler to not
worry about the RTL underneath.

Basically I want the compiler to ignore the instantiation. From what I
wrote above, Im getting the feeling this isnt possible.
 
Reply With Quote
 
Andy
Guest
Posts: n/a
 
      10-26-2010

Yes, the entity has to exist, but its architecture does not (if you do
not specify it in the entity instantiation)... Just like you have to
declare the component, you have to define the entity.

Whether the tool will find the attribute on the entity, and "bind" the
entity to an external primitive, is another matter, and is likely tool
dependent.

Andy
 
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
Direct entity instantiation... Brian Drummond VHDL 4 10-31-2011 02:01 PM
Explicit instantiation of STL vector demands explicit instantiation of all the templates it using internally. krunalbauskar@gmail.com C++ 1 12-25-2006 03:51 PM
Direct instantiation and configuration Rick Jackson VHDL 8 12-02-2005 01:32 PM
What is 'boxing' and 'unboxing' process? Siz ASP .Net 1 12-12-2004 08:21 PM
direct instantiation, libraries valentin tihomirov VHDL 6 04-26-2004 12:03 PM



Advertisments