0

I am trying to write a tcl script to read and synthesize a design. I used the following commands at the top of the tcl file and executed it with yosys -c filename.tcl.

verilog_defaults -add -I<path_to_include_dir>

I got the following error:

ERROR: TCL interpreter returned an error: invalid command name "verilog_defaults"

I do not get any errors when I execute the same command in yosys shell. Are these commands valid in tcl script or are there different commands for tcl scripts?

1 Answer 1

1

My bad, I missed importing yosys commands to tcl shell. I will mention the solution just for the reference of others who might face the same issue.

The issue was solved by putting the below import command at the top of the tcl file.

yosys -import

This instruction is mentioned in the link: http://www.clifford.at/yosys/cmd_tcl.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.