|
@@ -1,3 +1,7 @@
|
|
|
|
|
+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/generated/prod2u_door_temp_params.vh}
|
|
|
analyze -file {src/common/uart_rx_byte.v}
|
|
analyze -file {src/common/uart_rx_byte.v}
|
|
|
analyze -file {src/common/uart_tx_byte.v}
|
|
analyze -file {src/common/uart_tx_byte.v}
|
|
@@ -27,3 +31,99 @@ analyze -file {src/project/project_adapter.v}
|
|
|
analyze -file {src/rtl/prod2u_por.v}
|
|
analyze -file {src/rtl/prod2u_por.v}
|
|
|
analyze -file {src/rtl/prod2u_p4_i2c_stop_start_read.v}
|
|
analyze -file {src/rtl/prod2u_p4_i2c_stop_start_read.v}
|
|
|
analyze -file {src/top/prod2u_p4_normal_v3_top.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
|