Search This Blog

Friday, November 1, 2019

Congestion and It's reduction Techniques

Congestion

Congestion: If the number of routing tracks available for for routing in one particular area is less than the required routing tracks then the area said to be congested.
Congestion : Required Tracks/Available Tracks

10/5 in a 2D congestion map : There are 10 routes that are passing through a particular edge of a Global Route Cell (GRC), but there are only 5 routing tracks available. There is an overflow of 5.

Two major categories: Global Congestion and Local Congestion

Global Congestion: This occurs when there are a lot of chip-level or inter-block wires that need to cross an area.
Local Congestion: This occurs when the floorplan has macros and other routing blockages that are too close together to get enough routes through to connect to the macros

Causes for Routing Congestion:
  1. Missing Placement Blockages
  2. Inefficient floor plan
  3. Improper macro placement and macro channels (Placing macros in the middle of floor plan etc.)
  4. Floorplan the macros without giving routing space for interconnection between macros
  5. High Cell Density (High local utilization)
  6. If your design had more number of AOI/OAI cells you will see this congestion issue
  7. Placement of standard cells near macros
  8. High pin density on one edge of block
  9. Too many buffers added for optimization
  10. No proper logic optimization
  11. Very Robust Power network
  12. High via density due to dense power mesh
  13. Crisscross IO pin alignment is also a problem
  14. Module splitting
Congestion Reduction Techniques:
  1. Add placement Blockages in channels and around macro corners
  2. Avoid fly line Crisscrosses
  3. Review the macro placement
  4. Apply the cell padding (If congestion due to pin density)
  5. Apply the Partial blockage (If congestion due to cell density ) 
  6. Reduce local cell density using density screens 
  7. Reordering scan chain to reduce congestion 
  8. Congestion driven placement with high effort 
  9. Continue the iterations until good congestion results 
  10. Density screen is applied to limit the density of standard cells in an area to reduce congestion due high pin density

Floor Plan Flow

Floor Plan Flow

Floor plan Steps:
  1. Aspect Ratio
  2. Utilisation
  3. IO clearance
  4. Channel Spacing
  5. Offset Value
  6. Macro Placement
  7. Channel Spacing 
  8. Alignment of Macros
  9. Use Proper Blockages
  10. IO Pin Assignment
  11. Add End caps
  12. Add Well Taps
Floor plan Reports
  1. checkFPlan -reportUtil
  2. checkPlace
  3. Check_timing -verbose
  4. CheckNetlist
  5. CheckUnique
  6. Report_qor
  7. Report_timing
  8. checkPinAssignment
  9. checkDesign -all
  10. report_constraints
  11. all_analysis_views
  12. report_analysis_summary

How To fix the Hold time violations

Hold time violations fixing Techniques

The following techniques are used to fix the Hold time violations
  1. Down-size the cell
  2. LVT to HVT conversion
  3. Add Delay cell on Data path
1).Down-size the buffer
  • get_cells
  • get_lib_cells -of_object cell_name  (which cell you want to down-size NOR4X0_HVT)
  • get_alternative_lib_cells cell_name
  • size_cell cell_name saed32hvt_ff1p16vn40c/NOR2X0_HVT (corresponding cell name along with Library )
2).LVT to HVT conversion
  • get_cells
  • get_lib_cells -of_objects U453 (cell name NOR4X0_LVT)
  • size_cell U453 NOR4X0_HVT  (U453 instance name of the cell)
3).Add Delay cell on Data path
  • insert_buffer net_name DELX4
Note: Here cell name means Instance name

SETUP TIME Violations fixing Techniques

SETUP TIME Violations fixing Techniques

The following techniques are used to fix the Setup time violations
  1. Up-size the cell
  2. HVT to LVT conversion
  3. Add buffer on Data path
1).Up-size the buffer
  • get_cells
  • get_lib_cells -of_object cell_name  (which cell you want to up-size NOR2X0_HVT)
  • get_alternative_lib_cells cell_name
  • size_cell cell_name saed32hvt_ff1p16vn40c/NOR4X0_HVT (corresponding cell library with cell name )
2).HVT to LVT conversion
  • get_cells
  • get_lib_cells -of_objects U453 (cell name NOR4X0_LVT)
  • size_cell U453 NOR4X0_LVT  (U453 Instance name)
3).Add buffer
  • insert_buffer net_name BUFX4
Note: Here cell name means Instance name

How to convert All LVT Cells to HVT cells wise versa


How to convert All LVT Cells to HVT cells wise versa


proc lvttohvt {lvt cell}   {
          set a [get_flat_cells -filter "ref_name=~*LVT*]
          foreach_in_collection bb $a {
                    set cell [get_attribute $$bb ref_name]
                     regsub "LVT" $cell "HVT" hvtname
                     size_cell $bb $hvtname
                }
   }

Script to find the Next cell and Previous cell

How to find the Next cell
proc name {
set n [get_cells -of_objects [get_pins -of_objects [get_nets -of_objects [get_pins -of_objects $name -filter "direction==out"]] -filter "direction==in"]]
}

How to find the Previous cell
proc name {
set n [get_cells -of_objects [get_pins -of_objects [get_nets -of_objects [get_pins -of_objects $name -filter "direction==in"]] -filter "direction==out"]]
}

CTS Spec

setCTSMode -routeTopPreferredLayer 5 -routeBottomPreferredLayer 4 -routeShielding VSS -routeNonDefaultRule ndr
setDontUse BUFX2 false
setDontUse INVX1 false
setDontUse BUFX2 false
setDontUse INVX1 false
set_dont_touch [get_lib_cells BUFX2] false
set_dont_touch [get_lib_cells INVX1] false
setDontUse CLKBUF* true
setDontUse CLKINV* true
setDontUse DLY* true
## cts targets##
set_ccopt_property target_max_trans 1 (10% clock period)
set_ccopt_property routing_top_min_fanout 35
set_ccopt_property target_skew 1 (10% of clk)
set_ccopt_property -net_type trunk target_max_trans 0.500
set_ccopt_property -net_type leaf target_max_trans 0.400
set_ccopt_mode -cts_opt_type full
#### latency and uncertainty targets#####
set_clock_latency 4 [get_clocks wb_clk]  (40% of clk)
set_clock_uncertainty 1.3 -setup [get_clocks clk] (including 10% skew+1%jitter+200ps margin)
set_clock_uncertainty 1.2 -hold [get_clocks clk] (including 10% skew+100ps margin)
add_ndr ndr -width {Metal4 0.16 Metal5 0.16} -spacing {Metal4 0.14 Metal5 0.14}
create_route_type -name CTS_2w1s -non_default_rule cts2w1s
set_ccopt_property route_type -net_type trunk CTS_2w1s
set_ccopt_property max_fanout 30


What is the sanity checks you have done for STA?

 Sanity checks for STA: Linking Checks: We need to check., is there any missing modules or missing pins in a library. this is done by link c...