#! /bin/bash wrapper_module=cpu function bomb_out { echo "$*" echo " ... giving up" exit } [ ! -d "../gate_level/" ] && bomb_out "couldn't find expected gate_level directory ../gate_level/" [ ! -f "../gate_level/${wrapper_module}.v" ] && bomb_out "couldn't find expected ${wrapper_module}.v file in ../gate_level/" [ ! -d "../constraints/" ] && bomb_out "couldn't find expected constraints directory ../constraints/" [ ! -f "../constraints/design.sdc" ] && bomb_out "couldn't find expected design.sdc file in ../constraints/" ams_edis \ -tech c35 \ -vn ${wrapper_module}.v \ -vt ${wrapper_module} \ -metlay thin4M \ -corelib CORELIB \ -corevolt _3.3V \ -corevolt_bc _3.3V \ -corevolt_wc _3.3V \ -iolib IOLIB \ -iovolt _3.3V \ -iovolt_bc _3.3V \ -iovolt_wc _3.3V \ -ediver EDI13.1ISR4 ln -s ../../gate_level/${wrapper_module}.v VERILOG/${wrapper_module}.v ln -s ../../constraints/design.sdc CONSTRAINTS/${wrapper_module}_func.sdc ln -s ../../constraints/design.sdc CONSTRAINTS/${wrapper_module}_test.sdc