Frequency dependent SOPC builder components
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
Frequency dependent SOPC builder components

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> FPGA
Author Message
avishay
Guest





Posted: Wed Dec 14, 2005 1:15 am    Post subject: Frequency dependent SOPC builder components Reply with quote

Hello all,
I'm designing a component for integration in Altera's SOPC builder, for
which I have to set some frequency dependent constants (for timing
generation). How can I pass the component's assigned frequency from the
SOPC builder to the VHDL? I can do either with VHDL generic or some
kind of dynamic source code modification using the build script.

Thanks,
Avishay
Back to top
Mark McDougall
Guest





Posted: Wed Dec 14, 2005 1:15 am    Post subject: Re: Frequency dependent SOPC builder components Reply with quote

avishay wrote:

Quote:
I'm designing a component for integration in Altera's SOPC builder, for
which I have to set some frequency dependent constants (for timing
generation). How can I pass the component's assigned frequency from the
SOPC builder to the VHDL? I can do either with VHDL generic or some
kind of dynamic source code modification using the build script.

If you define a generic in the top level of your component, SOPC should
allow the user to edit the value when they create an instance of the
component.

Regards,
Mark
Back to top
avishay
Guest





Posted: Wed Dec 14, 2005 9:15 am    Post subject: Re: Frequency dependent SOPC builder components Reply with quote

This wasn't my meaning. In the main SOPC builder screen, a clock is
assigned to each component, and the frequency of each clock is entered
at a separate table. I need access to this information.

Thanks,
Avishay
Back to top
Mark McDougall
Guest





Posted: Thu Dec 15, 2005 1:15 am    Post subject: Re: Frequency dependent SOPC builder components Reply with quote

avishay wrote:

Quote:
This wasn't my meaning. In the main SOPC builder screen, a clock is
assigned to each component, and the frequency of each clock is entered
at a separate table. I need access to this information.

A quick look in <C:\altera\kits\nios2_51\bin\gtf> shows a file called
MODULE_FREQ.gtf which apparently 'returns the frequency of the indicated
PTF module'. My guess is you need to somehow call this in a customised
build script, and quite possibly generate a VHDL source file from this
information?!?

Regards,
Mark
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> FPGA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB