mirror of
https://github.com/The-OpenROAD-Project/OpenSTA.git
synced 2026-08-30 09:48:30 +02:00
One-to-one mismatched widths: partial timing arc creation
This commit is contained in:
@@ -0,0 +1,133 @@
|
||||
library (one_to_one_mismatched_width_test) {
|
||||
delay_model : "table_lookup";
|
||||
simulation : false;
|
||||
capacitive_load_unit (1,pF);
|
||||
leakage_power_unit : "1pW";
|
||||
current_unit : "1A";
|
||||
pulling_resistance_unit : "1kohm";
|
||||
time_unit : "1ns";
|
||||
voltage_unit : "1v";
|
||||
library_features : "report_delay_calculation";
|
||||
input_threshold_pct_rise : 50;
|
||||
input_threshold_pct_fall : 50;
|
||||
output_threshold_pct_rise : 50;
|
||||
output_threshold_pct_fall : 50;
|
||||
slew_lower_threshold_pct_rise : 30;
|
||||
slew_lower_threshold_pct_fall : 30;
|
||||
slew_upper_threshold_pct_rise : 70;
|
||||
slew_upper_threshold_pct_fall : 70;
|
||||
slew_derate_from_library : 1.0;
|
||||
nom_process : 1.0;
|
||||
nom_temperature : 85.0;
|
||||
nom_voltage : 0.75;
|
||||
type (bus20) {
|
||||
base_type : "array";
|
||||
data_type : "bit";
|
||||
bit_width : 20;
|
||||
bit_from : 19;
|
||||
bit_to : 0;
|
||||
}
|
||||
type (bus32) {
|
||||
base_type : "array";
|
||||
data_type : "bit";
|
||||
bit_width : 32;
|
||||
bit_from : 31;
|
||||
bit_to : 0;
|
||||
}
|
||||
|
||||
cell (or_32_to_20) {
|
||||
bus (A) {
|
||||
capacitance : 1;
|
||||
bus_type : "bus32";
|
||||
direction : "input";
|
||||
}
|
||||
bus (B) {
|
||||
capacitance : 1;
|
||||
bus_type : "bus32";
|
||||
direction : "input";
|
||||
}
|
||||
bus (Y) {
|
||||
function : "A | B";
|
||||
bus_type : "bus20";
|
||||
direction : "output";
|
||||
timing () {
|
||||
related_pin : "A";
|
||||
cell_rise (scalar) {
|
||||
values ("1");
|
||||
}
|
||||
cell_fall (scalar) {
|
||||
values ("1");
|
||||
}
|
||||
rise_transition (scalar) {
|
||||
values ("1");
|
||||
}
|
||||
fall_transition (scalar) {
|
||||
values ("1");
|
||||
}
|
||||
}
|
||||
timing () {
|
||||
related_pin : "B";
|
||||
cell_rise (scalar) {
|
||||
values ("1");
|
||||
}
|
||||
cell_fall (scalar) {
|
||||
values ("1");
|
||||
}
|
||||
rise_transition (scalar) {
|
||||
values ("1");
|
||||
}
|
||||
fall_transition (scalar) {
|
||||
values ("1");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cell (or_20_to_32) {
|
||||
bus (A) {
|
||||
capacitance : 1;
|
||||
bus_type : "bus20";
|
||||
direction : "input";
|
||||
}
|
||||
bus (B) {
|
||||
capacitance : 1;
|
||||
bus_type : "bus20";
|
||||
direction : "input";
|
||||
}
|
||||
bus (Y) {
|
||||
function : "A | B";
|
||||
bus_type : "bus32";
|
||||
direction : "output";
|
||||
timing () {
|
||||
related_pin : "A";
|
||||
cell_rise (scalar) {
|
||||
values ("1");
|
||||
}
|
||||
cell_fall (scalar) {
|
||||
values ("1");
|
||||
}
|
||||
rise_transition (scalar) {
|
||||
values ("1");
|
||||
}
|
||||
fall_transition (scalar) {
|
||||
values ("1");
|
||||
}
|
||||
}
|
||||
timing () {
|
||||
related_pin : "B";
|
||||
cell_rise (scalar) {
|
||||
values ("1");
|
||||
}
|
||||
cell_fall (scalar) {
|
||||
values ("1");
|
||||
}
|
||||
rise_transition (scalar) {
|
||||
values ("1");
|
||||
}
|
||||
fall_transition (scalar) {
|
||||
values ("1");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+168
@@ -0,0 +1,168 @@
|
||||
Warning: one2one.lib line 53, timing port A and related port Y are different sizes.
|
||||
Warning: one2one.lib line 68, timing port B and related port Y are different sizes.
|
||||
Warning: one2one.lib line 101, timing port A and related port Y are different sizes.
|
||||
Warning: one2one.lib line 116, timing port B and related port Y are different sizes.
|
||||
TEST 1:
|
||||
Startpoint: a[0] (input port clocked by clk)
|
||||
Endpoint: y[0] (output port clocked by clk)
|
||||
Path Group: clk
|
||||
Path Type: max
|
||||
|
||||
Delay Time Description
|
||||
---------------------------------------------------------
|
||||
0.00 0.00 clock clk (rise edge)
|
||||
0.00 0.00 clock network delay (ideal)
|
||||
0.00 0.00 v input external delay
|
||||
0.00 0.00 v a[0] (in)
|
||||
1.00 1.00 ^ partial_wide_or_cell/Y[0] (or_32_to_20)
|
||||
0.00 1.00 ^ y[0] (out)
|
||||
1.00 data arrival time
|
||||
|
||||
0.00 0.00 clock clk (rise edge)
|
||||
0.00 0.00 clock network delay (ideal)
|
||||
0.00 0.00 clock reconvergence pessimism
|
||||
0.00 0.00 output external delay
|
||||
0.00 data required time
|
||||
---------------------------------------------------------
|
||||
0.00 data required time
|
||||
-1.00 data arrival time
|
||||
---------------------------------------------------------
|
||||
-1.00 slack (VIOLATED)
|
||||
|
||||
|
||||
Startpoint: a[10] (input port clocked by clk)
|
||||
Endpoint: y[10] (output port clocked by clk)
|
||||
Path Group: clk
|
||||
Path Type: max
|
||||
|
||||
Delay Time Description
|
||||
---------------------------------------------------------
|
||||
0.00 0.00 clock clk (rise edge)
|
||||
0.00 0.00 clock network delay (ideal)
|
||||
0.00 0.00 v input external delay
|
||||
0.00 0.00 v a[10] (in)
|
||||
1.00 1.00 ^ partial_wide_or_cell/Y[10] (or_32_to_20)
|
||||
0.00 1.00 ^ y[10] (out)
|
||||
1.00 data arrival time
|
||||
|
||||
0.00 0.00 clock clk (rise edge)
|
||||
0.00 0.00 clock network delay (ideal)
|
||||
0.00 0.00 clock reconvergence pessimism
|
||||
0.00 0.00 output external delay
|
||||
0.00 data required time
|
||||
---------------------------------------------------------
|
||||
0.00 data required time
|
||||
-1.00 data arrival time
|
||||
---------------------------------------------------------
|
||||
-1.00 slack (VIOLATED)
|
||||
|
||||
|
||||
Startpoint: a[11] (input port clocked by clk)
|
||||
Endpoint: y[11] (output port clocked by clk)
|
||||
Path Group: clk
|
||||
Path Type: max
|
||||
|
||||
Delay Time Description
|
||||
---------------------------------------------------------
|
||||
0.00 0.00 clock clk (rise edge)
|
||||
0.00 0.00 clock network delay (ideal)
|
||||
0.00 0.00 v input external delay
|
||||
0.00 0.00 v a[11] (in)
|
||||
1.00 1.00 ^ partial_wide_or_cell/Y[11] (or_32_to_20)
|
||||
0.00 1.00 ^ y[11] (out)
|
||||
1.00 data arrival time
|
||||
|
||||
0.00 0.00 clock clk (rise edge)
|
||||
0.00 0.00 clock network delay (ideal)
|
||||
0.00 0.00 clock reconvergence pessimism
|
||||
0.00 0.00 output external delay
|
||||
0.00 data required time
|
||||
---------------------------------------------------------
|
||||
0.00 data required time
|
||||
-1.00 data arrival time
|
||||
---------------------------------------------------------
|
||||
-1.00 slack (VIOLATED)
|
||||
|
||||
|
||||
TEST 2:
|
||||
Startpoint: a[0] (input port clocked by clk)
|
||||
Endpoint: y[0] (output port clocked by clk)
|
||||
Path Group: clk
|
||||
Path Type: max
|
||||
|
||||
Delay Time Description
|
||||
---------------------------------------------------------
|
||||
0.00 0.00 clock clk (rise edge)
|
||||
0.00 0.00 clock network delay (ideal)
|
||||
0.00 0.00 v input external delay
|
||||
0.00 0.00 v a[0] (in)
|
||||
1.00 1.00 ^ wide_or_cell/Y[0] (or_20_to_32)
|
||||
0.00 1.00 ^ y[0] (out)
|
||||
1.00 data arrival time
|
||||
|
||||
0.00 0.00 clock clk (rise edge)
|
||||
0.00 0.00 clock network delay (ideal)
|
||||
0.00 0.00 clock reconvergence pessimism
|
||||
0.00 0.00 output external delay
|
||||
0.00 data required time
|
||||
---------------------------------------------------------
|
||||
0.00 data required time
|
||||
-1.00 data arrival time
|
||||
---------------------------------------------------------
|
||||
-1.00 slack (VIOLATED)
|
||||
|
||||
|
||||
Startpoint: a[10] (input port clocked by clk)
|
||||
Endpoint: y[10] (output port clocked by clk)
|
||||
Path Group: clk
|
||||
Path Type: max
|
||||
|
||||
Delay Time Description
|
||||
---------------------------------------------------------
|
||||
0.00 0.00 clock clk (rise edge)
|
||||
0.00 0.00 clock network delay (ideal)
|
||||
0.00 0.00 v input external delay
|
||||
0.00 0.00 v a[10] (in)
|
||||
1.00 1.00 ^ wide_or_cell/Y[10] (or_20_to_32)
|
||||
0.00 1.00 ^ y[10] (out)
|
||||
1.00 data arrival time
|
||||
|
||||
0.00 0.00 clock clk (rise edge)
|
||||
0.00 0.00 clock network delay (ideal)
|
||||
0.00 0.00 clock reconvergence pessimism
|
||||
0.00 0.00 output external delay
|
||||
0.00 data required time
|
||||
---------------------------------------------------------
|
||||
0.00 data required time
|
||||
-1.00 data arrival time
|
||||
---------------------------------------------------------
|
||||
-1.00 slack (VIOLATED)
|
||||
|
||||
|
||||
Startpoint: a[11] (input port clocked by clk)
|
||||
Endpoint: y[11] (output port clocked by clk)
|
||||
Path Group: clk
|
||||
Path Type: max
|
||||
|
||||
Delay Time Description
|
||||
---------------------------------------------------------
|
||||
0.00 0.00 clock clk (rise edge)
|
||||
0.00 0.00 clock network delay (ideal)
|
||||
0.00 0.00 v input external delay
|
||||
0.00 0.00 v a[11] (in)
|
||||
1.00 1.00 ^ wide_or_cell/Y[11] (or_20_to_32)
|
||||
0.00 1.00 ^ y[11] (out)
|
||||
1.00 data arrival time
|
||||
|
||||
0.00 0.00 clock clk (rise edge)
|
||||
0.00 0.00 clock network delay (ideal)
|
||||
0.00 0.00 clock reconvergence pessimism
|
||||
0.00 0.00 output external delay
|
||||
0.00 data required time
|
||||
---------------------------------------------------------
|
||||
0.00 data required time
|
||||
-1.00 data arrival time
|
||||
---------------------------------------------------------
|
||||
-1.00 slack (VIOLATED)
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
read_liberty one2one.lib
|
||||
|
||||
puts "TEST 1:"
|
||||
read_verilog one2one_test1.v
|
||||
link_design one2one_test1
|
||||
create_clock -name clk -period 0
|
||||
set_input_delay -clock clk 0 [all_inputs]
|
||||
set_output_delay -clock clk 0 [all_outputs]
|
||||
report_checks -group_count 3
|
||||
|
||||
puts "TEST 2:"
|
||||
read_verilog one2one_test2.v
|
||||
link_design one2one_test2
|
||||
create_clock -name clk -period 0
|
||||
set_input_delay -clock clk 0 [all_inputs]
|
||||
set_output_delay -clock clk 0 [all_outputs]
|
||||
report_checks -group_count 3
|
||||
@@ -0,0 +1,14 @@
|
||||
// Liberty file test: one-to-one mapping with mismatched bit widths
|
||||
// Should generate warning but still create timing arcs between bits with same index
|
||||
module one2one_test1 (
|
||||
input wire [31:0] a,
|
||||
output wire [19:0] y
|
||||
);
|
||||
|
||||
or_32_to_20 partial_wide_or_cell (
|
||||
.A(a),
|
||||
.B(32'b0),
|
||||
.Y(y)
|
||||
);
|
||||
|
||||
endmodule
|
||||
@@ -0,0 +1,14 @@
|
||||
// Liberty file test: one-to-one mapping with mismatched bit widths
|
||||
// Should generate warning but still create timing arcs between bits with same index
|
||||
module one2one_test2 (
|
||||
input wire [19:0] a,
|
||||
output wire [31:0] y
|
||||
);
|
||||
|
||||
or_20_to_32 partial_wide_or_cell (
|
||||
.A(a),
|
||||
.B(20'b0),
|
||||
.Y(y)
|
||||
);
|
||||
|
||||
endmodule
|
||||
@@ -124,6 +124,7 @@ record_example_tests {
|
||||
record_sta_tests {
|
||||
prima3
|
||||
verilog_attribute
|
||||
one2one
|
||||
}
|
||||
|
||||
define_test_group fast [group_tests all]
|
||||
|
||||
Reference in New Issue
Block a user