|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T g
Length: 1446 (0x5a6)
Types: TextFile
Names: »getwired.c«
└─⟦87ddcff64⟧ Bits:30001253 CPHDIST85 Tape, 1985 Autumn Conference Copenhagen
└─⟦this⟧ »cph85dist/wirewrap/getwired.c«
/**********************************************
* getwired - do the wire routing. *
* *
* When getwired is called, the signal list *
* is sorted in order by signalname. This *
* routine connects adjacent pins with the *
* same signal name together. Pins are conn- *
* nected together with either top to top *
* wraps or bottom to bottom wraps everywhere.*
* The last wrap may really be wrapped as a *
* top to bottom wrap if there is an odd num- *
* ber of pins in the string. But it is still*
* represented as a top to top wrap. *
**********************************************/
#include "wirewrap.h"
getwired()
{
int indexlo,indexhi,count,i;
char currentsignal[NAMELENGTH];
indexhi = 0;
while(indexhi < nextfree)
{
indexlo = indexhi;
indexhi = indexhi + 1;
for(i=0;i<NAMELENGTH;i++)
currentsignal[i] = pinarray[indexlo].signalname->signalname[i];
while((indexhi < nextfree) &&
!namecmp(pinarray[indexhi].signalname->signalname,currentsignal)
)indexhi++;
if(namecmp(currentsignal,NULLSIGNAL))
{
count = indexlo;
while(count < indexhi-1)
{
pinarray[count].inner = count+1;
pinarray[count+1].inner = count;
count = count + 2;
}
count = indexlo + 1;
while(count < indexhi-1)
{
pinarray[count].outer = count+1;
pinarray[count+1].outer = count;
count = count + 2;
}
}
}
}