- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
we'd like to embed a number that identifies a particular FPGA configuration in it (the SYS ID isn't sufficient because it doesn't change if only logic outside the SOPC was modified) Ideally, this number should be generated (or taken from version control system) and embedded in the configuration automatically as a last step before compiling and assembling. I know that I could create my own build script for the whole process, but is there a way to have it integrated when building from Quartus GUI? Maybe some hook somewhere in one of the existing scripts to call something external? Such hooks exist in the Eclipse NIOS IDE for building the firmware, but not in Quartus... Would appreciate it if you knew one. Regards, KoljaLink Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You could create an Avalon mapped component that instantiates a ROM. You will get a hex/mif file to pre-initialize it which you can inject your version control number into (script it or manual). Then parameterize the memory to be LE based instead of memory. By using LEs it should synthesize into wires and be almost free (you'll have a little bit of switch fabric logic created).
You could also get really fancy and avoid the memory instantiation altogether and just have a script that parses HDL and modifies a parameter within it. I hope that helps, maybe someone else will have a better idea for you.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
<div class='quotetop'>QUOTE </div>
--- Quote Start --- You could create an Avalon mapped component that instantiates a ROM[/b] --- Quote End --- Well I have not been clear about my actual question. I didn't mean to ask what the script to embed the number should do, but rather: how to ensure this script is executed when (or immediately before) selecting "Compile" in Quartus. Experience shows that steps that can be omitted will be omitted, and that's not acceptable in this case... And it would be same with a selfmade build script that has to be executed "outside Quartus". It would be used only in special cases (i.e. when specifically asked to do so) but it really should be used _always_. So I'm actually looking for a hook for such script, in the build process that is triggered from Quartus' menu.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page