cd ../tc/basic_enable_gate_resolve/
files=$(ls *.v)
cd ../../sim/
for f in $files;
do
file=$(basename "$f" .v)
log_file="${file}_run.log"
make elab>/dev/null
make run>../tc/basic_enable_gate_resolve/${log_file}
mv ${log_file} ../tc/basic_enable_gate_resolve/test
echo "Completed simulation.Log file: $log_file"
done