试试这个
Example 3 loads the module called va_amp from the amp_one.va file for the first simulation run. For the second run, HSPICE loads the va_amp module from the amp_two.va file.
Example 3
* simple .alter test
.hdl amp_one.va
v1 1 0 10
x1 1 0 va_amp
.tran 10n 100n
.alter alter1
.hdl amp_two.va
.end