title: Write tclsh script to compile SV file by VCS tool
body: <p>I am writing a tclsh script to compile system verilog files, how can I solve the problem below and compile all the files in tclsh script?</p>
  
  <p>The command below will only compile 'mod1.sv':</p>
  
  <pre><code>exec vlogan -sverilog mod1.sv mod2.sv mod3.sv
  </code></pre>
  
  <p>The command below will only compile 'mod2.sv':</p>
  
  <pre><code>exec vlogan -sverilog mod2.sv mod3.sv mod1.sv
  </code></pre>
  
  <p>But this actually compile all the sv file in command line:</p>
  
  <pre><code>vlogan -sverilog mod2.sv mod3.sv mod1.sv
  </code></pre>