splitSchema.cpp File Reference

#include "splitSchema.h"
#include "schema.h"
#include <iostream>
#include <assert.h>
Include dependency graph for splitSchema.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

schemamakeSplitSchema (schema *s1, schema *s2)
 Creates a new split schema.

Function Documentation

schema* makeSplitSchema ( schema s1,
schema s2 
)

Creates a new split schema.

Cables are enlarged to dWire. The horizontal gap between the two subschema is such that the connections are not too slopy.

Definition at line 34 of file splitSchema.cpp.

References dWire, schema::height(), and makeEnlargedSchema().

Referenced by generateInsideSchema().

00035 {
00036     // make sure a and b are at least dWire large
00037     schema * a = makeEnlargedSchema(s1, dWire);
00038     schema * b = makeEnlargedSchema(s2, dWire);
00039 
00040     // horizontal gap to avaoid too slopy connections
00041     double  hgap = (a->height()+b->height())/4;
00042 
00043     return new splitSchema(a,b,hgap);
00044 }

Here is the call graph for this function:

Here is the caller graph for this function:

Generated on Thu Jul 15 16:15:51 2010 for FAUST compiler by  doxygen 1.6.3