# Creating SmartDesign "CAM_IOD_TIP_TOP"
set sd_name {CAM_IOD_TIP_TOP}
create_smartdesign -sd_name ${sd_name}

# Disable auto promotion of pins of type 'pad'
auto_promote_pad_pins -promote_all 0

# Create top level Scalar Ports
sd_create_scalar_port -sd_name ${sd_name} -port_name {ARST_N} -port_direction {IN}
sd_create_scalar_port -sd_name ${sd_name} -port_name {HS_IO_CLK_PAUSE} -port_direction {IN}
sd_create_scalar_port -sd_name ${sd_name} -port_name {HS_SEL} -port_direction {IN}
sd_create_scalar_port -sd_name ${sd_name} -port_name {RX_CLK_N} -port_direction {IN} -port_is_pad {1}
sd_create_scalar_port -sd_name ${sd_name} -port_name {RX_CLK_P} -port_direction {IN} -port_is_pad {1}
sd_create_scalar_port -sd_name ${sd_name} -port_name {TRAINING_RESETN} -port_direction {IN}

sd_create_scalar_port -sd_name ${sd_name} -port_name {CLK_TRAIN_DONE} -port_direction {OUT}
sd_create_scalar_port -sd_name ${sd_name} -port_name {CLK_TRAIN_ERROR} -port_direction {OUT}
sd_create_scalar_port -sd_name ${sd_name} -port_name {L0_LP_DATA_N} -port_direction {OUT}
sd_create_scalar_port -sd_name ${sd_name} -port_name {L0_LP_DATA} -port_direction {OUT}
sd_create_scalar_port -sd_name ${sd_name} -port_name {L1_LP_DATA_N} -port_direction {OUT}
sd_create_scalar_port -sd_name ${sd_name} -port_name {L1_LP_DATA} -port_direction {OUT}
sd_create_scalar_port -sd_name ${sd_name} -port_name {L2_LP_DATA_N} -port_direction {OUT}
sd_create_scalar_port -sd_name ${sd_name} -port_name {L2_LP_DATA} -port_direction {OUT}
sd_create_scalar_port -sd_name ${sd_name} -port_name {L3_LP_DATA_N} -port_direction {OUT}
sd_create_scalar_port -sd_name ${sd_name} -port_name {L3_LP_DATA} -port_direction {OUT}
sd_create_scalar_port -sd_name ${sd_name} -port_name {RX_CLK_G} -port_direction {OUT}
sd_create_scalar_port -sd_name ${sd_name} -port_name {training_done_o} -port_direction {OUT}


# Create top level Bus Ports
sd_create_bus_port -sd_name ${sd_name} -port_name {RXD_N} -port_direction {IN} -port_range {[3:0]} -port_is_pad {1}
sd_create_bus_port -sd_name ${sd_name} -port_name {RXD} -port_direction {IN} -port_range {[3:0]} -port_is_pad {1}

sd_create_bus_port -sd_name ${sd_name} -port_name {L0_RXD_DATA} -port_direction {OUT} -port_range {[7:0]}
sd_create_bus_port -sd_name ${sd_name} -port_name {L1_RXD_DATA} -port_direction {OUT} -port_range {[7:0]}
sd_create_bus_port -sd_name ${sd_name} -port_name {L2_RXD_DATA} -port_direction {OUT} -port_range {[7:0]}
sd_create_bus_port -sd_name ${sd_name} -port_name {L3_RXD_DATA} -port_direction {OUT} -port_range {[7:0]}


# Add AND2_0 instance
sd_instantiate_macro -sd_name ${sd_name} -macro_name {AND2} -instance_name {AND2_0}



# Add AND4_0 instance
sd_instantiate_macro -sd_name ${sd_name} -macro_name {AND4} -instance_name {AND4_0}



# Add CORERESET_PF_C1_0 instance
sd_instantiate_component -sd_name ${sd_name} -component_name {CORERESET_PF_C1} -instance_name {CORERESET_PF_C1_0}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {CORERESET_PF_C1_0:BANK_x_VDDI_STATUS} -value {VCC}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {CORERESET_PF_C1_0:BANK_y_VDDI_STATUS} -value {GND}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {CORERESET_PF_C1_0:PLL_LOCK} -value {VCC}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {CORERESET_PF_C1_0:SS_BUSY} -value {GND}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {CORERESET_PF_C1_0:INIT_DONE} -value {VCC}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {CORERESET_PF_C1_0:FF_US_RESTORE} -value {GND}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {CORERESET_PF_C1_0:FPGA_POR_N} -value {VCC}
sd_mark_pins_unused -sd_name ${sd_name} -pin_names {CORERESET_PF_C1_0:PLL_POWERDOWN_B}



# Add MIPI_TRAINING_LITE_C0_0 instance
sd_instantiate_component -sd_name ${sd_name} -component_name {MIPI_TRAINING_LITE_C0} -instance_name {MIPI_TRAINING_LITE_C0_0}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C0_0:PLL_LOCK_I} -value {VCC}
sd_mark_pins_unused -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C0_0:TRAINING_ACTIVE_O}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C0_0:TAP_DELAYS_I} -value {00001010}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C0_0:VALID_WIN_LEN_I} -value {00000111}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C0_0:FALSE_FLG_THRESHOLD_I} -value {1010}
sd_mark_pins_unused -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C0_0:TAP_CNT_FINAL_O}



# Add MIPI_TRAINING_LITE_C1_0 instance
sd_instantiate_component -sd_name ${sd_name} -component_name {MIPI_TRAINING_LITE_C1} -instance_name {MIPI_TRAINING_LITE_C1_0}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C1_0:PLL_LOCK_I} -value {VCC}
sd_mark_pins_unused -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C1_0:TRAINING_ACTIVE_O}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C1_0:TAP_DELAYS_I} -value {00001010}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C1_0:VALID_WIN_LEN_I} -value {00000111}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C1_0:FALSE_FLG_THRESHOLD_I} -value {1010}
sd_mark_pins_unused -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C1_0:TAP_CNT_FINAL_O}



# Add MIPI_TRAINING_LITE_C2_0 instance
sd_instantiate_component -sd_name ${sd_name} -component_name {MIPI_TRAINING_LITE_C2} -instance_name {MIPI_TRAINING_LITE_C2_0}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C2_0:PLL_LOCK_I} -value {VCC}
sd_mark_pins_unused -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C2_0:TRAINING_ACTIVE_O}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C2_0:TAP_DELAYS_I} -value {00001010}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C2_0:VALID_WIN_LEN_I} -value {00000111}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C2_0:FALSE_FLG_THRESHOLD_I} -value {1010}
sd_mark_pins_unused -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C2_0:TAP_CNT_FINAL_O}



# Add MIPI_TRAINING_LITE_C3_0 instance
sd_instantiate_component -sd_name ${sd_name} -component_name {MIPI_TRAINING_LITE_C3} -instance_name {MIPI_TRAINING_LITE_C3_0}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C3_0:PLL_LOCK_I} -value {VCC}
sd_mark_pins_unused -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C3_0:TRAINING_ACTIVE_O}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C3_0:TAP_DELAYS_I} -value {00001010}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C3_0:VALID_WIN_LEN_I} -value {00000111}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C3_0:FALSE_FLG_THRESHOLD_I} -value {1010}
sd_mark_pins_unused -sd_name ${sd_name} -pin_names {MIPI_TRAINING_LITE_C3_0:TAP_CNT_FINAL_O}



# Add PF_IOD_0 instance
sd_instantiate_component -sd_name ${sd_name} -component_name {PF_IOD_GENERIC_RX_C0} -instance_name {PF_IOD_0}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:EYE_MONITOR_CLEAR_FLAGS} -pin_slices {[0:0]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:EYE_MONITOR_CLEAR_FLAGS} -pin_slices {[1:1]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:EYE_MONITOR_CLEAR_FLAGS} -pin_slices {[2:2]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:EYE_MONITOR_CLEAR_FLAGS} -pin_slices {[3:3]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:EYE_MONITOR_EARLY} -pin_slices {[0:0]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:EYE_MONITOR_EARLY} -pin_slices {[1:1]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:EYE_MONITOR_EARLY} -pin_slices {[2:2]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:EYE_MONITOR_EARLY} -pin_slices {[3:3]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:EYE_MONITOR_LATE} -pin_slices {[0:0]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:EYE_MONITOR_LATE} -pin_slices {[1:1]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:EYE_MONITOR_LATE} -pin_slices {[2:2]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:EYE_MONITOR_LATE} -pin_slices {[3:3]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:DELAY_LINE_MOVE} -pin_slices {[0:0]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:DELAY_LINE_MOVE} -pin_slices {[1:1]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:DELAY_LINE_MOVE} -pin_slices {[2:2]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:DELAY_LINE_MOVE} -pin_slices {[3:3]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:DELAY_LINE_DIRECTION} -pin_slices {[0:0]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:DELAY_LINE_DIRECTION} -pin_slices {[1:1]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:DELAY_LINE_DIRECTION} -pin_slices {[2:2]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:DELAY_LINE_DIRECTION} -pin_slices {[3:3]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:DELAY_LINE_LOAD} -pin_slices {[0:0]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:DELAY_LINE_LOAD} -pin_slices {[1:1]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:DELAY_LINE_LOAD} -pin_slices {[2:2]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:DELAY_LINE_LOAD} -pin_slices {[3:3]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:DELAY_LINE_OUT_OF_RANGE} -pin_slices {[0:0]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:DELAY_LINE_OUT_OF_RANGE} -pin_slices {[1:1]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:DELAY_LINE_OUT_OF_RANGE} -pin_slices {[2:2]}
sd_create_pin_slices -sd_name ${sd_name} -pin_name {PF_IOD_0:DELAY_LINE_OUT_OF_RANGE} -pin_slices {[3:3]}
sd_connect_pins_to_constant -sd_name ${sd_name} -pin_names {PF_IOD_0:EYE_MONITOR_WIDTH} -value {001}



# Add scalar net connections
sd_connect_pins -sd_name ${sd_name} -pin_names {"AND2_0:A" "CORERESET_PF_C1_0:FABRIC_RESET_N" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"AND2_0:B" "CLK_TRAIN_DONE" "PF_IOD_0:CLK_TRAIN_DONE" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"AND2_0:Y" "MIPI_TRAINING_LITE_C0_0:RESET_N_I" "MIPI_TRAINING_LITE_C1_0:RESET_N_I" "MIPI_TRAINING_LITE_C2_0:RESET_N_I" "MIPI_TRAINING_LITE_C3_0:RESET_N_I" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"AND4_0:A" "MIPI_TRAINING_LITE_C0_0:TRAINING_DONE_O" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"AND4_0:B" "MIPI_TRAINING_LITE_C1_0:TRAINING_DONE_O" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"AND4_0:C" "MIPI_TRAINING_LITE_C2_0:TRAINING_DONE_O" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"AND4_0:D" "MIPI_TRAINING_LITE_C3_0:TRAINING_DONE_O" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"AND4_0:Y" "training_done_o" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"ARST_N" "PF_IOD_0:ARST_N" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"CLK_TRAIN_ERROR" "PF_IOD_0:CLK_TRAIN_ERROR" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"CORERESET_PF_C1_0:CLK" "MIPI_TRAINING_LITE_C0_0:CLK_I" "MIPI_TRAINING_LITE_C1_0:CLK_I" "MIPI_TRAINING_LITE_C2_0:CLK_I" "MIPI_TRAINING_LITE_C3_0:CLK_I" "PF_IOD_0:RX_CLK_G" "RX_CLK_G" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"CORERESET_PF_C1_0:EXT_RST_N" "TRAINING_RESETN" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"HS_IO_CLK_PAUSE" "PF_IOD_0:HS_IO_CLK_PAUSE" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"HS_SEL" "PF_IOD_0:HS_SEL" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"L0_LP_DATA" "PF_IOD_0:L0_LP_DATA" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"L0_LP_DATA_N" "MIPI_TRAINING_LITE_C0_0:LP_DATA_N_I" "PF_IOD_0:L0_LP_DATA_N" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"L1_LP_DATA" "PF_IOD_0:L1_LP_DATA" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"L1_LP_DATA_N" "MIPI_TRAINING_LITE_C1_0:LP_DATA_N_I" "PF_IOD_0:L1_LP_DATA_N" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"L2_LP_DATA" "PF_IOD_0:L2_LP_DATA" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"L2_LP_DATA_N" "MIPI_TRAINING_LITE_C2_0:LP_DATA_N_I" "PF_IOD_0:L2_LP_DATA_N" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"L3_LP_DATA" "PF_IOD_0:L3_LP_DATA" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"L3_LP_DATA_N" "MIPI_TRAINING_LITE_C3_0:LP_DATA_N_I" "PF_IOD_0:L3_LP_DATA_N" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C0_0:BIT_ALGN_CLR_FLAGS_O" "PF_IOD_0:EYE_MONITOR_CLEAR_FLAGS[0:0]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C0_0:BIT_ALGN_DIRECTION_O" "PF_IOD_0:DELAY_LINE_DIRECTION[0:0]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C0_0:BIT_ALGN_LOAD_O" "PF_IOD_0:DELAY_LINE_LOAD[0:0]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C0_0:BIT_ALGN_MOVE_O" "PF_IOD_0:DELAY_LINE_MOVE[0:0]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C0_0:IOD_EARLY_I" "PF_IOD_0:EYE_MONITOR_EARLY[0:0]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C0_0:IOD_LATE_I" "PF_IOD_0:EYE_MONITOR_LATE[0:0]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C0_0:IOD_OOR_I" "PF_IOD_0:DELAY_LINE_OUT_OF_RANGE[0:0]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C1_0:BIT_ALGN_CLR_FLAGS_O" "PF_IOD_0:EYE_MONITOR_CLEAR_FLAGS[1:1]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C1_0:BIT_ALGN_DIRECTION_O" "PF_IOD_0:DELAY_LINE_DIRECTION[1:1]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C1_0:BIT_ALGN_LOAD_O" "PF_IOD_0:DELAY_LINE_LOAD[1:1]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C1_0:BIT_ALGN_MOVE_O" "PF_IOD_0:DELAY_LINE_MOVE[1:1]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C1_0:IOD_EARLY_I" "PF_IOD_0:EYE_MONITOR_EARLY[1:1]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C1_0:IOD_LATE_I" "PF_IOD_0:EYE_MONITOR_LATE[1:1]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C1_0:IOD_OOR_I" "PF_IOD_0:DELAY_LINE_OUT_OF_RANGE[1:1]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C2_0:BIT_ALGN_CLR_FLAGS_O" "PF_IOD_0:EYE_MONITOR_CLEAR_FLAGS[2:2]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C2_0:BIT_ALGN_DIRECTION_O" "PF_IOD_0:DELAY_LINE_DIRECTION[2:2]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C2_0:BIT_ALGN_LOAD_O" "PF_IOD_0:DELAY_LINE_LOAD[2:2]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C2_0:BIT_ALGN_MOVE_O" "PF_IOD_0:DELAY_LINE_MOVE[2:2]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C2_0:IOD_EARLY_I" "PF_IOD_0:EYE_MONITOR_EARLY[2:2]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C2_0:IOD_LATE_I" "PF_IOD_0:EYE_MONITOR_LATE[2:2]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C2_0:IOD_OOR_I" "PF_IOD_0:DELAY_LINE_OUT_OF_RANGE[2:2]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C3_0:BIT_ALGN_CLR_FLAGS_O" "PF_IOD_0:EYE_MONITOR_CLEAR_FLAGS[3:3]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C3_0:BIT_ALGN_DIRECTION_O" "PF_IOD_0:DELAY_LINE_DIRECTION[3:3]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C3_0:BIT_ALGN_LOAD_O" "PF_IOD_0:DELAY_LINE_LOAD[3:3]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C3_0:BIT_ALGN_MOVE_O" "PF_IOD_0:DELAY_LINE_MOVE[3:3]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C3_0:IOD_EARLY_I" "PF_IOD_0:EYE_MONITOR_EARLY[3:3]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C3_0:IOD_LATE_I" "PF_IOD_0:EYE_MONITOR_LATE[3:3]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"MIPI_TRAINING_LITE_C3_0:IOD_OOR_I" "PF_IOD_0:DELAY_LINE_OUT_OF_RANGE[3:3]" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"PF_IOD_0:RX_CLK_N" "RX_CLK_N" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"PF_IOD_0:RX_CLK_P" "RX_CLK_P" }

# Add bus net connections
sd_connect_pins -sd_name ${sd_name} -pin_names {"L0_RXD_DATA" "PF_IOD_0:L0_RXD_DATA" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"L1_RXD_DATA" "PF_IOD_0:L1_RXD_DATA" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"L2_RXD_DATA" "PF_IOD_0:L2_RXD_DATA" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"L3_RXD_DATA" "PF_IOD_0:L3_RXD_DATA" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"PF_IOD_0:RXD" "RXD" }
sd_connect_pins -sd_name ${sd_name} -pin_names {"PF_IOD_0:RXD_N" "RXD_N" }


# Re-enable auto promotion of pins of type 'pad'
auto_promote_pad_pins -promote_all 1
# Save the SmartDesign 
save_smartdesign -sd_name ${sd_name}
# Generate SmartDesign "CAM_IOD_TIP_TOP"
generate_component -component_name ${sd_name}
