Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - Changing generics in top-level module

 
Thread Tools Search this Thread
Old 05-25-2004, 05:14 PM   #1
Default Changing generics in top-level module


Hi all,

Is there a way of changing the generics of the top-level entity from a
configuration?

My testbench has some parameters I'd like to tweak on different runs,
and I would like to do it via multiple configurations, rather than
vsim options. However, I can't figure out how to do it!

My current solution involves instantiating this top level testbench in
an even higher level entity, which I can then use configurations on,
but this seems wasteful...

Any suggestions greatly appreciated!

Thanks,
Martin

--

TRW Conekt, Solihull, UK
http://www.trw.com/conekt




Martin Thompson
  Reply With Quote
Old 05-26-2004, 08:23 AM   #2
Egbert Molenkamp
 
Posts: n/a
Default Re: Changing generics in top-level module
Not yet, there is a proposal on this, see
http://www.eda.org/vhdl-200x/vhdl-20...proposals.html (FT23)
Egbert Molenkamp


"Martin Thompson" <> wrote in message
news:...
> Hi all,
>
> Is there a way of changing the generics of the top-level entity from a
> configuration?
>
> My testbench has some parameters I'd like to tweak on different runs,
> and I would like to do it via multiple configurations, rather than
> vsim options. However, I can't figure out how to do it!
>
> My current solution involves instantiating this top level testbench in
> an even higher level entity, which I can then use configurations on,
> but this seems wasteful...
>
> Any suggestions greatly appreciated!
>
> Thanks,
> Martin
>
> --
>
> TRW Conekt, Solihull, UK
> http://www.trw.com/conekt
>
>





Egbert Molenkamp
  Reply With Quote
Old 05-26-2004, 09:13 AM   #3
Alan Fitch
 
Posts: n/a
Default Re: Changing generics in top-level module

"Martin Thompson" <> wrote in message
news:...
> Hi all,
>
> Is there a way of changing the generics of the top-level entity from

a
> configuration?
>
> My testbench has some parameters I'd like to tweak on different

runs,
> and I would like to do it via multiple configurations, rather than
> vsim options. However, I can't figure out how to do it!
>
> My current solution involves instantiating this top level testbench

in
> an even higher level entity, which I can then use configurations on,
> but this seems wasteful...
>
> Any suggestions greatly appreciated!
>


As Egbert says, not yet. In the current VHDL LRM it says that a
particular
implementation of the language is not required to support ports and
generics
on a top level entity, though it may.

Using a wrapper (or donut as the Americans say) is one approach, as
you've
taken.

You can sometimes use simulator features, for instance vsim -g in
modelsim.
You could then write a set of scripts to launch simulation runs with
different
top level generics. Of course this isn't as portable as using a
wrapper.

regards

Alan


--
Alan Fitch
Consultant

DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * Perl * Tcl/Tk * Verification * Project
Services

Doulos Ltd. Church Hatch, 22 Market Place, Ringwood, Hampshire, BH24
1AW, UK
Tel: +44 (0)1425 471223 mail:

Fax: +44 (0)1425 471573 Web:
http://www.doulos.com

The contents of this message may contain personal views which are not
the
views of Doulos Ltd., unless specifically stated.



Alan Fitch
  Reply With Quote
Old 05-26-2004, 02:45 PM   #4
Martin Thompson
 
Posts: n/a
Default Re: Changing generics in top-level module

Thanks for those inputs - looks like a wrapper for now then.

Cheers,
Martin

--

TRW Conekt, Solihull, UK
http://www.trw.com/conekt


Martin Thompson
  Reply With Quote
Old 05-26-2004, 04:50 PM   #5
Jim Lewis
 
Posts: n/a
Default Re: Changing generics in top-level module
The latest is that this proposal has been demoted
to the MP list. I will be updating the reflector
to indicate this shortly.

How much we get done and how fast we can do it
is really a function of participation. Hint. Hint.
Hint. Observer participants (no membership required)
with a good knowledge of the VHDL LRM are welcome
to write an LCS (Language Change Specification).

Things get worked on based on priority and based on
someone being willing and having the time to write
an LCS. This item rolled off the fast track list
due to priority, required delivery schedule for
fast track items (must have an LCS by DAC), and
not enough bandwidth from the current members (we
tend to take time off to sleep, say hi to the wife,
and play with the kids). It is a volunteer effort,
so for most it means our job does not pay us to do
the work.

Cheers,
Jim
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~
Jim Lewis
Director of Training private.php?do=newpm&u=
SynthWorks Design Inc. http://www.SynthWorks.com
1-503-590-4787

Expert VHDL Training for Hardware Design and Verification
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~

> Not yet, there is a proposal on this, see
> http://www.eda.org/vhdl-200x/vhdl-20...proposals.html (FT23)
> Egbert Molenkamp
>
>
> "Martin Thompson" <> wrote in message
> news:...
>
>>Hi all,
>>
>>Is there a way of changing the generics of the top-level entity from a
>>configuration?
>>
>>My testbench has some parameters I'd like to tweak on different runs,
>>and I would like to do it via multiple configurations, rather than
>>vsim options. However, I can't figure out how to do it!
>>
>>My current solution involves instantiating this top level testbench in
>>an even higher level entity, which I can then use configurations on,
>>but this seems wasteful...
>>
>>Any suggestions greatly appreciated!
>>
>>Thanks,
>>Martin
>>
>>--
>>
>>TRW Conekt, Solihull, UK
>>http://www.trw.com/conekt



Jim Lewis
  Reply With Quote
Old 06-08-2004, 12:47 PM   #6
Just an Illusion
 
Posts: n/a
Default Re: Changing generics in top-level module
Hi Martin,

I know that configuration isn't supported for RTL synthesis
(IEEE-1076.6-1999), but have you try to change your generics via the
configuration binding ?

I remember you that in IEEE-1076-2002, chapter 5.2, the configuration
specification can include some aspect of generic_map_aspect (see section
2.5.1).

I don't know how simulator implement it, but that can be your solution.

JaI

Martin Thompson wrote:

>Hi all,
>
>Is there a way of changing the generics of the top-level entity from a
>configuration?
>
>My testbench has some parameters I'd like to tweak on different runs,
>and I would like to do it via multiple configurations, rather than
>vsim options. However, I can't figure out how to do it!
>
>My current solution involves instantiating this top level testbench in
>an even higher level entity, which I can then use configurations on,
>but this seems wasteful...
>
>Any suggestions greatly appreciated!
>
>Thanks,
>Martin
>
>
>




Just an Illusion
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DVIXtoDVD sound level problem Wim DVD Video 1 04-21-2006 09:00 AM
Pay Range for entry level A+ Cert. Job ?? A+ Certified Professional A+ Certification 25 12-05-2005 08:55 PM
PC Tech level I, II ? Bernie A+ Certification 1 07-09-2004 08:21 PM
Re: Panasonic & Pioneer DVD players - time remaining display and black level settings? SloPoke DVD Video 0 08-18-2003 02:40 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46