F
fl
Guest
Hi,
I do not understand the .tcl command, which is issued by Matlab Simulink to run Modelsim in HDL Coder. More specifically, I do not understand the 'after' command below.
After I search some website, I guess 'after' may means after 100 nS. But when it runs, I do not see the 'after' effect. The input and output signals are there as usual. Could you explain that line meaning to me?
.................
vsim('tclstart' , ...
{ 'cd hdlsrc_tb', ...
'vlib work', ...
'vcom Hc_stage1.vhd', ...
'vcom Hc_stage2.vhd', ...
'vcom Hc.vhd', ...
'vsimulink work.Hc', ...
'after 100 add wave -height 200 -radix decimal -format analog-step -scale 0.002 -offset 32000 sim:/Hc/filter_in', ...
'after 100 add wave -height 200 -radix decimal -format analog-step -scale 0.002 -offset 32000 sim:/Hc/filter_out ', ...
'after 100 add wave -height 200 -radix decimal -format analog-step -scale 0.002 -offset 32000 sim:/Hc/ce_out ', ...
'catch { wm geometry $vsimPriv(WaveWindows) 521x600+10+10 }', ...
'catch { wave zoomfull }'})
..................
In the Modelsim window, it shows:
,,,,,,,,,,,,
# -- Loading entity hc_stage2
# vsim -foreign {simlinkserver {C:/Program Files/MATLAB/R2011a/toolbox/edalink/extensions/modelsim/windows32/liblfmhdls_tmwvs.dll} } work.Hc
# Loading std.standard
# Loading ieee.std_logic_1164(body)
# Loading ieee.numeric_std(body)
# Loading work.hc(rtl)#1
# Loading work.hc_stage1(rtl)#1
# Loading work.hc_stage2(rtl)#1
# Loading C:/Program Files/MATLAB/R2011a/toolbox/edalink/extensions/modelsim/windows32/liblfmhdls_tmwvs.dll
# after#672
# after#675
# after#678
# 1
# 0
# -----------------------------------------
# Running Simulink Cosimulation block.
# Fri Nov 16 2:22e 2012
# ** Warning: NUMERIC_STD."=": metavalue detected, returning FALSE
# Time: 0 ps Iteration: 0 Instance: /hc/u_hc_stage1
# Fri Nov Time 2012
# Simulation halt requested by foreign interface.
..................
The 'after' is followed #672 etc. Does this echo have relationship with the tcl 'after'?
Thanks,
I do not understand the .tcl command, which is issued by Matlab Simulink to run Modelsim in HDL Coder. More specifically, I do not understand the 'after' command below.
After I search some website, I guess 'after' may means after 100 nS. But when it runs, I do not see the 'after' effect. The input and output signals are there as usual. Could you explain that line meaning to me?
.................
vsim('tclstart' , ...
{ 'cd hdlsrc_tb', ...
'vlib work', ...
'vcom Hc_stage1.vhd', ...
'vcom Hc_stage2.vhd', ...
'vcom Hc.vhd', ...
'vsimulink work.Hc', ...
'after 100 add wave -height 200 -radix decimal -format analog-step -scale 0.002 -offset 32000 sim:/Hc/filter_in', ...
'after 100 add wave -height 200 -radix decimal -format analog-step -scale 0.002 -offset 32000 sim:/Hc/filter_out ', ...
'after 100 add wave -height 200 -radix decimal -format analog-step -scale 0.002 -offset 32000 sim:/Hc/ce_out ', ...
'catch { wm geometry $vsimPriv(WaveWindows) 521x600+10+10 }', ...
'catch { wave zoomfull }'})
..................
In the Modelsim window, it shows:
,,,,,,,,,,,,
# -- Loading entity hc_stage2
# vsim -foreign {simlinkserver {C:/Program Files/MATLAB/R2011a/toolbox/edalink/extensions/modelsim/windows32/liblfmhdls_tmwvs.dll} } work.Hc
# Loading std.standard
# Loading ieee.std_logic_1164(body)
# Loading ieee.numeric_std(body)
# Loading work.hc(rtl)#1
# Loading work.hc_stage1(rtl)#1
# Loading work.hc_stage2(rtl)#1
# Loading C:/Program Files/MATLAB/R2011a/toolbox/edalink/extensions/modelsim/windows32/liblfmhdls_tmwvs.dll
# after#672
# after#675
# after#678
# 1
# 0
# -----------------------------------------
# Running Simulink Cosimulation block.
# Fri Nov 16 2:22e 2012
# ** Warning: NUMERIC_STD."=": metavalue detected, returning FALSE
# Time: 0 ps Iteration: 0 Instance: /hc/u_hc_stage1
# Fri Nov Time 2012
# Simulation halt requested by foreign interface.
..................
The 'after' is followed #672 etc. Does this echo have relationship with the tcl 'after'?
Thanks,