FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-24-2004, 12:22 PM
Chris Jones
Guest
 
Posts: n/a
Default Routing algorithm - help needed

Consider the grid shown below.

There are 4 electrical "switch pairs" which need to be connected to
make the overall connection work.

---------------------------------------------------------
| | | | | | | | | | | | | | |
---------------------------------------------------------
| | | | | | | | | | | | | | c`|
---------------------------------------------------------
| | | | | | | | | | | | | | |
---------------------------------------------------------
| | | | b | | | | | | | | | | |
---------------------------------------------------------
| | | | | | | | | | | | | d'| |
---------------------------------------------------------
| | | | | | | | | | | | | | |
---------------------------------------------------------
| | | | | | | | | | | | | | |
---------------------------------------------------------
| | | | | | a | | | | | a`| | | |
---------------------------------------------------------
| | | | | | | | | | | | | | |
---------------------------------------------------------
| | | | | | | | | | | | | | |
---------------------------------------------------------
| | | | | | | | | | | b`| | | |
---------------------------------------------------------
| | | | | | | d | | | | | | | |
---------------------------------------------------------
| | | | | | | | | | | | | | |
---------------------------------------------------------
| | c | | | | | | | | | | | | |
---------------------------------------------------------

The paths are

a --- a' (path A)
b --- b' (path B)
c --- c' (path C)
d --- d' (path D)

There would be two possible routes to connect these paths. The
connection can follow either 1) horizontal then vertical direction,
or 2) vertical then horizontal direction. There ie no other way that
the path between the electrical switches could be made. Thus every
possible path here would make a bounded rectangle encompassing the
pair of switches.

The following rule is to be followed for making up these paths:

If a switch p belonging to one path lies in the bounded rectangle
formed by the switches belonging to another path, then path p must be
connected first.

SO - What would be the order of connectivity of this set of paths?

AND - Develop a generalized procedure to implement this strategy!

Thanks,
Chris
Reply With Quote
  #2 (permalink)  
Old 02-24-2004, 01:00 PM
David Brown
Guest
 
Posts: n/a
Default Re: Routing algorithm - help needed


"Chris Jones" <[email protected]> wrote in message
news:[email protected] om...
> Consider the grid shown below.
>
> There are 4 electrical "switch pairs" which need to be connected to
> make the overall connection work.
>
> ---------------------------------------------------------
> | | | | | | | | | | | | | | |
> ---------------------------------------------------------
> | | | | | | | | | | | | | | c`|
> ---------------------------------------------------------
> | | | | | | | | | | | | | | |
> ---------------------------------------------------------
> | | | | b | | | | | | | | | | |
> ---------------------------------------------------------
> | | | | | | | | | | | | | d'| |
> ---------------------------------------------------------
> | | | | | | | | | | | | | | |
> ---------------------------------------------------------
> | | | | | | | | | | | | | | |
> ---------------------------------------------------------
> | | | | | | a | | | | | a`| | | |
> ---------------------------------------------------------
> | | | | | | | | | | | | | | |
> ---------------------------------------------------------
> | | | | | | | | | | | | | | |
> ---------------------------------------------------------
> | | | | | | | | | | | b`| | | |
> ---------------------------------------------------------
> | | | | | | | d | | | | | | | |
> ---------------------------------------------------------
> | | | | | | | | | | | | | | |
> ---------------------------------------------------------
> | | c | | | | | | | | | | | | |
> ---------------------------------------------------------
>
> The paths are
>
> a --- a' (path A)
> b --- b' (path B)
> c --- c' (path C)
> d --- d' (path D)
>
> There would be two possible routes to connect these paths. The
> connection can follow either 1) horizontal then vertical direction,
> or 2) vertical then horizontal direction. There ie no other way that
> the path between the electrical switches could be made. Thus every
> possible path here would make a bounded rectangle encompassing the
> pair of switches.
>
> The following rule is to be followed for making up these paths:
>
> If a switch p belonging to one path lies in the bounded rectangle
> formed by the switches belonging to another path, then path p must be
> connected first.
>
> SO - What would be the order of connectivity of this set of paths?
>
> AND - Develop a generalized procedure to implement this strategy!
>
> Thanks,
> Chris


The strategy will not work in general. Consider the network:

a b -
- a' b'

It's easy to see a connection solution, but b is in the boundary of a-a',
and a' is in the boundary of b-b', so your strategy will not work here.

Also, you need to consider how to deal with unsolvable networks.




Reply With Quote
  #3 (permalink)  
Old 02-24-2004, 07:01 PM
Dave
Guest
 
Posts: n/a
Default Re: Routing algorithm - help needed



Chris Jones wrote:
> Consider the grid shown below.
>
> There are 4 electrical "switch pairs" which need to be connected to
> make the overall connection work.
>
> ---------------------------------------------------------
> | | | | | | | | | | | | | | |
> ---------------------------------------------------------
> | | | | | | | | | | | | | | c`|
> ---------------------------------------------------------
> | | | | | | | | | | | | | | |
> ---------------------------------------------------------
> | | | | b | | | | | | | | | | |
> ---------------------------------------------------------
> | | | | | | | | | | | | | d'| |
> ---------------------------------------------------------
> | | | | | | | | | | | | | | |
> ---------------------------------------------------------
> | | | | | | | | | | | | | | |
> ---------------------------------------------------------
> | | | | | | a | | | | | a`| | | |
> ---------------------------------------------------------
> | | | | | | | | | | | | | | |
> ---------------------------------------------------------
> | | | | | | | | | | | | | | |
> ---------------------------------------------------------
> | | | | | | | | | | | b`| | | |
> ---------------------------------------------------------
> | | | | | | | d | | | | | | | |
> ---------------------------------------------------------
> | | | | | | | | | | | | | | |
> ---------------------------------------------------------
> | | c | | | | | | | | | | | | |
> ---------------------------------------------------------
>
> The paths are
>
> a --- a' (path A)
> b --- b' (path B)
> c --- c' (path C)
> d --- d' (path D)
>
> There would be two possible routes to connect these paths. The
> connection can follow either 1) horizontal then vertical direction,
> or 2) vertical then horizontal direction. There ie no other way that
> the path between the electrical switches could be made. Thus every
> possible path here would make a bounded rectangle encompassing the
> pair of switches.
>
> The following rule is to be followed for making up these paths:
>
> If a switch p belonging to one path lies in the bounded rectangle
> formed by the switches belonging to another path, then path p must be
> connected first.
>
> SO - What would be the order of connectivity of this set of paths?
>
> AND - Develop a generalized procedure to implement this strategy!
>
> Thanks,
> Chris



First, determine how you would do this in your head. Then try to do it
on paper. Then pretend to be a dumb computer and do it on paper again.
Then you should have a good idea how the program will work.

Seems, unless I've misread it, that this network is soluble in
alphabetical order:
a-a': trivial.
b-b': across/down fails because of a-a'; down/across works.
c-c': could go either way
d-d': up/right crosses a-a' but right/up is ok.

So in my head I'm marking cells that have been visited by existing
connections, then for subsequent connections considering if those cells
are already occupied. It's not hard to see that in other arrangements,
abcd might not be possible but some other order is, so you'll need to
run through the possible variations from abcd to dcba, listing the
orders that work.

Dave.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Filtered Back Projection Algorithm (FBP Algorithm) Bapaiah Katepalli Verilog 1 06-23-2006 06:58 PM
regarding clock routing praveen FPGA 5 11-21-2003 02:38 PM


All times are GMT +1. The time now is 02:30 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved