| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- import_device ef2_4.db -package EF2L45BG256B
- set_param rtl directive:async_reg on
- set_param place async_reg on
- analyze -file {src/generated/prod2u_door_temp_params.vh}
- analyze -file {src/common/uart_rx_byte.v}
- analyze -file {src/common/uart_tx_byte.v}
- analyze -file {src/common/crc16_serial.v}
- analyze -file {src/common/frame_rx.v}
- analyze -file {src/common/frame_tx.v}
- analyze -file {src/common/payload_ram.v}
- analyze -file {src/modules/output_target_ram.v}
- analyze -file {src/modules/pwm_scheduler.v}
- analyze -file {src/modules/shared_500us_tick.v}
- analyze -file {src/modules/host_watchdog.v}
- analyze -file {src/modules/door_percent_planner.v}
- analyze -file {src/modules/door_motion_service_tick.v}
- analyze -file {src/modules/door_calibration_sequencer.v}
- analyze -file {src/modules/door_profile_quantum_builder.v}
- analyze -file {src/modules/door_rate_quantum_builder.v}
- analyze -file {src/modules/door_rate_quantum_dispatcher.v}
- analyze -file {src/modules/door_shared_dda_scheduler.v}
- analyze -file {src/modules/door_axis_controller.v}
- analyze -file {src/modules/door_motion_controller.v}
- analyze -file {src/modules/prod2u_runtime_step_limit_gate.v}
- analyze -file {src/modules/i2c_word_reader.v}
- analyze -file {src/modules/temperature_reader.v}
- analyze -file {src/modules/temperature_ram.v}
- analyze -file {src/project/command_controller.v}
- analyze -file {src/project/project_adapter.v}
- analyze -file {src/rtl/prod2u_por.v}
- analyze -file {src/rtl/prod2u_p4_i2c_stop_start_read.v}
- analyze -file {src/top/prod2u_p4_normal_v3_top.v}
- elaborate -top {prod2u_p4_normal_v3_top}
- read_adc {constraints/prod2u_p4_normal_v3.adc}
- optimize_rtl
- read_sdc {constraints/prod2u_p4_normal_v3.sdc}
- proc p4_find_unique_regs {patterns} {
- set matches {}
- foreach pattern $patterns {
- foreach reg [get_regs -quiet $pattern] {
- if {[lsearch -exact $matches $reg] < 0} { lappend matches $reg }
- }
- }
- return $matches
- }
- set cdc_specs {
- {uart_rx_0 {{u_uart_rx/rx_sync_pipe\[0\]} {*/u_uart_rx/rx_sync_pipe\[0\]}} u_uart_rx/rx_sync_pipe[0]}
- {uart_rx_1 {{u_uart_rx/rx_sync_pipe\[1\]} {*/u_uart_rx/rx_sync_pipe\[1\]}} u_uart_rx/rx_sync_pipe[1]}
- {i2c_scl_0 {{u_temperature_i2c/impl/scl_sync\[0\]} {*/u_temperature_i2c/impl/scl_sync\[0\]}} u_temperature_i2c/scl_sync[0]}
- {i2c_scl_1 {{u_temperature_i2c/impl/scl_sync\[1\]} {*/u_temperature_i2c/impl/scl_sync\[1\]}} u_temperature_i2c/scl_sync[1]}
- {i2c_sda_0 {{u_temperature_i2c/impl/sda_sync\[0\]} {*/u_temperature_i2c/impl/sda_sync\[0\]}} u_temperature_i2c/sda_sync[0]}
- {i2c_sda_1 {{u_temperature_i2c/impl/sda_sync\[1\]} {*/u_temperature_i2c/impl/sda_sync\[1\]}} u_temperature_i2c/sda_sync[1]}
- {x_limit_ls_0 {{x_limit_ls_sync0}} x_limit_ls_sync0}
- {x_limit_ls_1 {{x_limit_ls_sync1}} x_limit_ls_sync1}
- {x_limit_hs_0 {{x_limit_hs_sync0}} x_limit_hs_sync0}
- {x_limit_hs_1 {{x_limit_hs_sync1}} x_limit_hs_sync1}
- {y_limit_ls_0 {{y_limit_ls_sync0}} y_limit_ls_sync0}
- {y_limit_ls_1 {{y_limit_ls_sync1}} y_limit_ls_sync1}
- {y_limit_hs_0 {{y_limit_hs_sync0}} y_limit_hs_sync0}
- {y_limit_hs_1 {{y_limit_hs_sync1}} y_limit_hs_sync1}
- {z_limit_ls_0 {{z_limit_ls_sync0}} z_limit_ls_sync0}
- {z_limit_ls_1 {{z_limit_ls_sync1}} z_limit_ls_sync1}
- {z_limit_hs_0 {{z_limit_hs_sync0}} z_limit_hs_sync0}
- {z_limit_hs_1 {{z_limit_hs_sync1}} z_limit_hs_sync1}
- }
- set cdc_report [open {prod2u_p4_normal_v3_cdc.rpt} w]
- puts $cdc_report {schema=prod2u-p4-normal-v3-cdc-v2}
- set cdc_failures {}
- set cdc_actual {}
- foreach group $cdc_specs {
- lassign $group name patterns normalized
- set matches [p4_find_unique_regs $patterns]
- if {[llength $matches] != 1} {
- lappend cdc_failures "$name:[llength $matches]"
- puts $cdc_report "structural_failure=$name:[llength $matches]"
- } else {
- set reg [lindex $matches 0]
- lappend cdc_actual $normalized
- set_property async_reg true $reg
- puts $cdc_report "retained_sync_register=$normalized"
- }
- }
- if {[llength $cdc_actual] != 18} {
- lappend cdc_failures "sync_total:[llength $cdc_actual]"
- }
- set false_path_pairs {
- {host_uart_rx {u_uart_rx/rx_sync_pipe\[0\]} u_uart_rx/rx_sync_pipe[0]}
- {temp_scl {u_temperature_i2c/impl/scl_sync\[0\]} u_temperature_i2c/scl_sync[0]}
- {temp_sda {u_temperature_i2c/impl/sda_sync\[0\]} u_temperature_i2c/sda_sync[0]}
- {x_limit_ls {x_limit_ls_sync0} x_limit_ls_sync0}
- {x_limit_hs {x_limit_hs_sync0} x_limit_hs_sync0}
- {y_limit_ls {y_limit_ls_sync0} y_limit_ls_sync0}
- {y_limit_hs {y_limit_hs_sync0} y_limit_hs_sync0}
- {z_limit_ls {z_limit_ls_sync0} z_limit_ls_sync0}
- {z_limit_hs {z_limit_hs_sync0} z_limit_hs_sync0}
- }
- foreach pair $false_path_pairs {
- lassign $pair source endpoint_pattern normalized
- set source_obj [get_ports -quiet $source]
- set endpoint_obj [get_regs -quiet $endpoint_pattern]
- if {[llength $source_obj] == 1 && [llength $endpoint_obj] == 1} {
- set_false_path -from $source_obj -to $endpoint_obj
- puts $cdc_report "false_path_endpoint=$normalized"
- } else {
- lappend cdc_failures "false_path_object_count:$source:[llength $source_obj]:$normalized:[llength $endpoint_obj]"
- puts $cdc_report "structural_failure=false_path_object_count:$source:[llength $source_obj]:$normalized:[llength $endpoint_obj]"
- }
- }
- if {[llength $cdc_failures] != 0} {
- foreach failure $cdc_failures {
- puts $cdc_report "structural_failure=$failure"
- }
- close $cdc_report
- error "PROD2U_P4_NORMAL_V3_CDC_GATE_FAIL:[join $cdc_failures ,]"
- }
- close $cdc_report
- puts "CDC_GATE_PASS=1"
- report_area -io_info -file prod2u_p4_normal_v3_rtl.area
- export_db prod2u_p4_normal_v3_rtl.db
- set_param gate opt_area high
- set_param gate pack_effort high
- optimize_gate prod2u_p4_normal_v3_gate.area
- report_area -io_info -file prod2u_p4_normal_v3_gate.area
- export_db prod2u_p4_normal_v3_gate.db
|