I wrote a TCL script to compile the verilog file,e.g.
#!/usr/bin/tclsh
exec vlib work
exec vmap work work
exec vlog -fast \
+define+DDR \
# +define+VGA \
top.v \
top_tb.v
there is error in the sixth line(comment line) when run it.
But if change it to c-shell script, there will be ok.
why?
how to correct it?
Because TCL shell don't allow a comment inserted between continueing lines. This is consistent with Borne shell and Korne shell. But C shell allow a comment between the continueing lines.
Two possible solutions:
1. Completely delete the line other than commenting-out it, or comment out the line and move it to the end of the command line ( after top_tb.v ).