Hi Radu,
for qsys components it is enough to keep the .qsys file. I keep the in an own folder referenced with
"set_global_assignment -name QSYS_FILE qsys/soc.qsys"
in the qsf.
Quartus will build the qsys every time you compile your system. To save time you should uncomment this and build the qsys manually one time. Take care of the generated ip files. They may result in different folders.
For megafunctions i only keep the component.v file with the "Retrieval infos".
This tcl procedure builds the megafunctions with every run if called as PRE_FLOW_SCRIPT_FILE without modifying it's version controlled original file.
proc create_megafunction {file_name} {
file copy -force "$file_name" "${file_name}_"
set cmd "qmegawiz -silent OPTIONAL_FILES=NONE ${file_name}"
post_message "cmd: ${cmd}"
if { [catch {open "|$cmd"} input] } {
post_message -type error "couldn't run $cmd"
} else {
post_message -type info [read $input]
}
file rename -force "${file_name}_" "$file_name"
return
}
Best regards,
Dirk