Ahmed Ghazy | 7215439 | 2020-11-11 14:56:52 +0200 | [diff] [blame] | 1 | package require openlane |
| 2 | set script_dir [file dirname [file normalize [info script]]] |
| 3 | |
| 4 | prep -design $script_dir -tag user_project_wrapper -overwrite |
| 5 | set save_path $script_dir/../.. |
| 6 | |
| 7 | verilog_elaborate |
| 8 | |
| 9 | init_floorplan |
| 10 | |
Ahmed Ghazy | ec81bd2 | 2020-11-19 16:09:08 +0200 | [diff] [blame] | 11 | place_io_ol |
Ahmed Ghazy | 7215439 | 2020-11-11 14:56:52 +0200 | [diff] [blame] | 12 | |
agorararmard | c86f63d | 2020-11-27 18:43:43 +0000 | [diff] [blame] | 13 | set ::env(FP_DEF_TEMPATE) $script_dir/../../def/user_project_wrapper_empty.def |
| 14 | |
| 15 | apply_def_template |
| 16 | |
Ahmed Ghazy | ec81bd2 | 2020-11-19 16:09:08 +0200 | [diff] [blame] | 17 | add_macro_placement mprj 1150 1700 N |
Ahmed Ghazy | 7215439 | 2020-11-11 14:56:52 +0200 | [diff] [blame] | 18 | |
| 19 | manual_macro_placement f |
| 20 | |
agorararmard | c86f63d | 2020-11-27 18:43:43 +0000 | [diff] [blame] | 21 | set ::env(_SPACING) 1.6 |
| 22 | set ::env(_WIDTH) 3 |
Ahmed Ghazy | a4367b3 | 2020-11-26 21:03:30 +0200 | [diff] [blame] | 23 | |
agorararmard | c86f63d | 2020-11-27 18:43:43 +0000 | [diff] [blame] | 24 | set power_domains [list {vccd1 vssd1} {vccd2 vssd2} {vdda1 vssa1} {vdda2 vssa2}] |
| 25 | |
| 26 | set ::env(_VDD_NET_NAME) vccd1 |
| 27 | set ::env(_GND_NET_NAME) vssd1 |
| 28 | set ::env(_V_OFFSET) 14 |
| 29 | set ::env(_H_OFFSET) $::env(_V_OFFSET) |
| 30 | set ::env(_V_PITCH) 180 |
| 31 | set ::env(_H_PITCH) 180 |
| 32 | set ::env(_V_PDN_OFFSET) 0 |
| 33 | set ::env(_H_PDN_OFFSET) 0 |
| 34 | |
| 35 | foreach domain $power_domains { |
| 36 | set ::env(_VDD_NET_NAME) [lindex $domain 0] |
| 37 | set ::env(_GND_NET_NAME) [lindex $domain 1] |
| 38 | gen_pdn |
| 39 | |
| 40 | set ::env(_V_OFFSET) \ |
| 41 | [expr $::env(_V_OFFSET) + 2*($::env(_WIDTH)+$::env(_SPACING))] |
| 42 | set ::env(_H_OFFSET) \ |
| 43 | [expr $::env(_H_OFFSET) + 2*($::env(_WIDTH)+$::env(_SPACING))] |
| 44 | set ::env(_V_PDN_OFFSET) [expr $::env(_V_PDN_OFFSET)+6*$::env(_WIDTH)] |
| 45 | set ::env(_H_PDN_OFFSET) [expr $::env(_H_PDN_OFFSET)+6*$::env(_WIDTH)] |
| 46 | } |
Ahmed Ghazy | ec81bd2 | 2020-11-19 16:09:08 +0200 | [diff] [blame] | 47 | |
Ahmed Ghazy | 7215439 | 2020-11-11 14:56:52 +0200 | [diff] [blame] | 48 | global_routing_or |
| 49 | detailed_routing |
| 50 | |
| 51 | run_magic |
| 52 | run_magic_spice_export |
| 53 | |
| 54 | save_views -lef_path $::env(magic_result_file_tag).lef \ |
| 55 | -def_path $::env(tritonRoute_result_file_tag).def \ |
| 56 | -gds_path $::env(magic_result_file_tag).gds \ |
| 57 | -mag_path $::env(magic_result_file_tag).mag \ |
| 58 | -save_path $save_path \ |
| 59 | -tag $::env(RUN_TAG) |
| 60 | |
| 61 | run_magic_drc |
| 62 | |
| 63 | run_lvs; # requires run_magic_spice_export |
| 64 | |
| 65 | run_antenna_check |