Synthesis on yosys

1.7k Views Asked by At

I have a top file in Verilog and it uses multiple modules instantiated in it that are in different files. If I put all these files in one directory and then I use read Verilog command only on the top file. Will all the files having the modules are be read by this command in the correct order?

1

There are 1 best solutions below

2
On

If your Verilog files are named after the modules they contain:

read_verilog top.v
hierarchy -top top -libdir .

otherwise, you will have to read in all the modules:

read_verilog *.v
hierarchy -top top