The-OpenROAD-Project / OpenSTA

OpenSTA engine
GNU General Public License v3.0
389 stars 170 forks source link

syntax error, unexpected REG #89

Closed mdzakirhussain closed 2 years ago

mdzakirhussain commented 2 years ago

Why is that, sta reports this error "syntax error, unexpected REG".

I have synthesized using yosys, and the netlist file when read in sta, I am facing the aforesaid issue.

jjcherry56 commented 2 years ago

Please provide a testcase that reproduces the issue.

mdzakirhussain commented 2 years ago

alu.txt fa.txt rca.txt tb.txt

mdzakirhussain commented 2 years ago

top module is alu.txt

jjcherry56 commented 2 years ago

That is an RTL verilog. OpenSTA can only read structural verilog (post synthesis).

mdzakirhussain commented 2 years ago

i just provided the files

jjcherry56 commented 2 years ago

For future reference, a text file containing verilog is not a testcase. There is no library data or tcl command file.

mdzakirhussain commented 2 years ago

synth.txt

mdzakirhussain commented 2 years ago

This is the file, after synthesis which I am using in opensta. Verilog files , .v is not getting uploaded so I uploaded txt files

mdzakirhussain commented 2 years ago

I am sorry for my ignorance. Please help me.

mdzakirhussain commented 2 years ago

sky130_fd_sc_hd__tt_025C_1v80.txt

I am using sky130_fd_sc_hd__tt_025C_1v80.lib

jjcherry56 commented 2 years ago

synth.v/txt is not structural verilog. it has reg and always statements in it.