2009年3月17日星期二

actel 使用

c盘卷号:942B-A7F4,注意一定是大写,她是区分大小写的。
环境变量:
LM_LICENSE_FILE
D:\Libero\License.dat;D:\Program Files\Modeltech_6.2b\license.dat

命令行输入:
mkdir D:/Program Files/Modeltech_6.2b/actel/vlog/src
cd D:/Program Files/Modeltech_6.2b/actel/vlog/src
cp D:\Libero\Designer\lib\vlog\fusion.v .

在modlesim中输入:
cd {D:/Program Files/Modeltech_6.2b/actel/vlog}
vlib fusion
vlog -work fusion src/fusion.v

仿真前run.do
×××××××××××××××××××××××××××××××××××××××××
quietly set ACTELLIBNAME fusion
quietly set PROJECT_DIR "D:/cff/led"

if {[file exists presynth/_info]} {
puts "INFO: Simulation library presynth already exists"
} else {
vlib presynth
}
vmap presynth presynth
vmap fusion "D:/Libero/Designer/lib/modelsim/precompiled/vlog/fusion"

vlog -work presynth "${PROJECT_DIR}/hdl/led.v"
vlog "+incdir+${PROJECT_DIR}/stimulus" -work presynth "${PROJECT_DIR}/stimulus/tutorial.v"

vsim -L fusion -L presynth -t 1ps presynth.testbench
add wave /testbench/*
run 1000ns
×××××××××××××××××××××××××××××××××××××××××


仿真后run.do
**********************************************************************
quietly set ACTELLIBNAME fusion
quietly set PROJECT_DIR "D:/cff/led"

if {[file exists postsynth/_info]} {
puts "INFO: Simulation library postsynth already exists"
} else {
vlib postsynth
}
vmap postsynth postsynth
vmap fusion "D:/Libero/Designer/lib/modelsim/precompiled/vlog/fusion"

vlog -work postsynth "${PROJECT_DIR}/synthesis/led.v"
vlog "+incdir+${PROJECT_DIR}/stimulus" -work postsynth "${PROJECT_DIR}/stimulus/tutorial.v"

vsim -L fusion -L postsynth -t 1ps postsynth.testbench
add wave /testbench/*
run 1000ns
**************************************************************
布局布线后仿真run.do
*************************************************************
quietly set ACTELLIBNAME fusion
quietly set PROJECT_DIR "D:/cff/led"

if {[file exists ../designer/impl1/simulation/postlayout/_info]} {
puts "INFO: Simulation library ../designer/impl1/simulation/postlayout already exists"
} else {
vlib ../designer/impl1/simulation/postlayout
}
vmap postlayout ../designer/impl1/simulation/postlayout
vmap fusion "D:/Libero/Designer/lib/modelsim/precompiled/vlog/fusion"

vlog -work postlayout "${PROJECT_DIR}/designer/impl1/led_ba.v"
vlog "+incdir+${PROJECT_DIR}/stimulus" -work postlayout "${PROJECT_DIR}/stimulus/tutorial.v"

vsim -L fusion -L postlayout -t 1ps -sdfmax /led_0=${PROJECT_DIR}/designer/impl1/led_ba.sdf postlayout.testbench
add wave /testbench/*
run 1000ns
*********************************************************************************

没有评论:

发表评论

关注者