- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does anyone know of a way to pass a generic value in to my top-level VHDL design from a command-line build flow? For instance, if my top level file has
Generic (
STAMP : integer
);
I'd like some way to pass STAMP = $(date +%s) to quartus_map. Right now I'm calling quartus_sh --tcl_eval to make some set_parameter calls before calling quartus_map, but that seems really really kludgey.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is a "quartus_map --set" option to change QSF assignments, but I don't know if it works for Parameters. I would suggest writing a proper script instead of calling --tcl_eval:
quartus_sh -t set_date.tcl where set_date.tcl will use Tcl to get the date and set it on the QSF.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
alternatively you can have the TCL modify the source code to give the value a different default value, or move it into a package and do the same thing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try
set_parameter -name PARAM_NAME VALUE
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