# Set library search path
set_db lib_search_path "/home/install/FOUNDRY/digital/180nm/dig/lib"

# Set HDL search path
set_db hdl_search_path "./ /"

# Specify the library file
set_db library "slow.lib"

# Read the HDL file
read_hdl "gate.v"

# Elaborate the design
elaborate

# Read the constraint file
read_sdc "constraints_top.sdc"

# Synthesize the design
synthesize

# Write outputs
write_sdf -timescale ns -nonegchecks "delays.sdf"
write_hdl "gate_netlist.v"
write_sdc "gate_sdc.sdc"

# Show the GUI for analysis
gui_show

# Generate reports
report_timing > "gate_timing.rep"
report_power > "gate_power.rep"
report_area > "gate_area.rep"
report_messages > "gate_message.rep"