مرتضي صاحب الزماني 1 Maze Routing
Homework 4 مهلت تحویل : 23 اردیبهشت پروژه 1 : انتخاب طرح : امروز مرتضي صاحب الزماني 2
3 Maze Routing Problem Given: –A planar rectangular grid graph. –Two points on the graph, S and T. –Obstacles modeled as blocked vertices. Objective: –Find the shortest path connecting S and T. Can be used to solve global or detailed routing (switchbox) problems.
مرتضي صاحب الزماني 4 Grid Graph Area Routing S T X S T X Simplified Representation X Grid Graph (Maze) S T X
مرتضي صاحب الزماني 5 Maze Routing S T
مرتضي صاحب الزماني 6 Lee’s Algorithm “ An Algorithm for Path Connection and its Application ”, C.Y. Lee, IRE Transactions on Electronic Computers, 1961.
مرتضي صاحب الزماني 7 Basic Idea A Breadth-First Search (BFS) of the grid graph. Always find the shortest path possible. Consists of 2 phases: –Wave Propagation –Retrace
مرتضي صاحب الزماني 8 An Illustration S T
مرتضي صاحب الزماني 9 Wave Propagation At step i, all vertices at Manhattan-distance i from S are labeled with i. A Propagation List (FIFO) is used to keep track of the vertices to consider in next step. S T 0 S T S T After Step 0After Step 3 After Step 6
مرتضي صاحب الزماني 10 Retrace Trace back the actual route. Starting from T. At vertex with i, goto any vertex with label i-1. S T Final Labeling
مرتضي صاحب الزماني 11 Example A B
مرتضي صاحب الزماني 12 Example (continued) A B
مرتضي صاحب الزماني 13 Retrace the Path A B
مرتضي صاحب الزماني 14 Alternative Paths Guideline: do not change direction unless you must
مرتضي صاحب الزماني 15 Maze Routing Summary Four Main Steps: 1.Expansion – Breadth first search to find all paths from source to target 2.Backtrace – Walk the shortest path back to the source and mark the path cells used 3.Clean Up – Erase all distance marks from other grid cells before the next net is routed 4.Reduce Capacities.
مرتضي صاحب الزماني 16 How many grids visited using Lee’s algorithm? S T
مرتضي صاحب الزماني 17 Time and Space Complexity For a grid of size w h: Time per net = O(wh) Space = O(wh log wh) (Since O(log wh) bits are needed to store each label.) For a x grid: 32 bits per label Total 4.8*4/3 Gbytes of memory!
مرتضي صاحب الزماني 18 Lee Algorithm
References David Pan, VLSI Physical Design Automation, Lecture Slides, University of Texas, مرتضي صاحب الزماني 19