#**************************************************/ #* Compile Script for Cadence BuildGates */ #* */ #* bgx_shell -f compile_bgx.scr */ #* */ #* Johannes Grad, OSU */ #* jgrad@ece.osu.edu */ #**************************************************/ # All verilog files, separated by spaces set my_verilog_files {FILE1.v FILE2.v} # Top-level Module set my_toplevel_module TOP_LEVEL_MODULE # The name of the clock pin. If no clock-pin # exists, pick anything set my_clock_pin clk # Target frequency in MHz for optimization set my_clock_freq_MHz 50 # Delay of input signals (Clock-to-Q, Package etc.) set my_input_delay_ns 1 # Reserved time for output signals (Holdtime etc.) set my_output_delay_ns 1 #************************************************** # No changes necessary beyond this point #************************************************** set OSUcells $env(OSUcells) read_tlf $OSUcells/lib/ami05/lib/osu05_stdcells.tlf read_verilog $my_verilog_files set_global target_technology osu05_stdcells set_global fix_multiport_nets true set_global hdl_verilog_out_unconnected_style full set_global hdl_write_multi_line_port_maps false do_build_generic -module $my_toplevel_module set_current_module $my_toplevel_module set_top_timing_module $my_toplevel_module set period [expr 1000.0/$my_clock_freq_MHz] set_clock vclk -period $period if {[get_names [find -inputs $my_clock_pin]] == $my_clock_pin} { set_clock_root -clock vclk $my_clock_pin } set_input_delay -clock vclk $my_input_delay_ns [get_names [find -inputs -no_clocks *]] set_external_delay -clock vclk $my_output_delay_ns [get_names [find -outputs *]] set_drive_cell -cell INVX8 [get_names [find -inputs *]] # Disable this command to skip flattening do_dissolve_hierarchy -hierarchical do_optimize write_verilog -hier $my_toplevel_module.vh # Write SDC file write_sdc $my_toplevel_module.sdc report_timing > timing.rep report_area > cell.rep report_power > power.rep exit