Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16611 Discussions

Modelsim "Force" question

Altera_Forum
Honored Contributor II
1,200 Views

in Modelsim what does this command "Force" ? I cannot decode it for the life of me  

 

foreach filename [glob $src_dir/*.$mem_type] { 

file copy -force $filename $dest_dir/[file tail $filename] 

 

We're copying something but I have no idea what 

 

Thank you
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
503 Views

It forces the copy to occur even if the target file already exists. 

 

www.tcl.tk/man/tcl/tclcmd/file.htm#m10 (www.tcl.tk/man/tcl/tclcmd/file.htm#m10)
0 Kudos
Altera_Forum
Honored Contributor II
503 Views

This is just a parameter on the file copy command. 

Modelsim has an actual "force" command, allowing you to override signal values in a simulation.
0 Kudos
Reply