- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I already have a CSV file for assignment. Does there exist a command to import the CSV file into my projects? Could you please tell me? Thank you very much.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi KfC,
You can import it via import assignment dialog box in Quartus menu. To do this, click Assignments | Import Assignments... click on the button labelled "..." and select the file.csv file. Click OK and then click OK again to import the assignments.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi SyafieqS_Intel
Thank you, SyafieqS_Intel, very much. Unfortunately, the same design has different pin assignment in each Quartus project for different verification engineers because the same pin has different functions. Could I use some command to add the file.csv in qsf file or in qip file? So, I can directly identify which assignment file is using.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi KfC,
In qsf file, most of the flow is in tcl and quartus support tcl compiler, thus, importing csv using normal tcl command should be working. You may look at below link for details tcl read and write.
https://wiki.tcl-lang.org/page/How+do+I+read+and+write+files+in+Tcl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi SyafieqS_Intel
Thank you, SyafieqS_Intel, very much. I will try it latter.
(1)Before that, could Quartus auto execute .tcl files by adding .tcl files into the project as follows picture?
(2)And the means about you said "importing csv using normal Tcl command" is mean that Quartus exist a command to import .csv file? Could you tell me what command is? I can't find it.
Thank you very much.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi KfC,
It is best to use csv package in Tcllib as it can handle weird cases in that format. You may refer to link below for example.
https://stackoverflow.com/questions/55205075/tcl-read-first-line-of-a-csv-file
https://core.tcl-lang.org/tcllib/doc/trunk/embedded/md/tcllib/files/modules/csv/csv.md
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi SyafieqS_Intel
Thank you, SyafieqS_Intel, very much. I will try it. Thank you very, very, much.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page