recSchema.cpp File Reference

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

Go to the source code of this file.

Functions

schemamakeRecSchema (schema *s1, schema *s2)
 Creates a new recursive schema (s1 ~ s2).

Function Documentation

schema* makeRecSchema ( schema s1,
schema s2 
)

Creates a new recursive schema (s1 ~ s2).

The smallest component is enlarged to the width of the other. The left and right horizontal margins are computed according to the number of internal connections.

Definition at line 34 of file recSchema.cpp.

References dWire, makeEnlargedSchema(), max(), and schema::width().

Referenced by generateInsideSchema().

00035 {
00036     schema* a = makeEnlargedSchema(s1, s2->width());
00037     schema* b = makeEnlargedSchema(s2, s1->width());
00038     double  m = dWire * max(b->inputs(), b->outputs());
00039     double  w = a->width() + 2*m;
00040 
00041     return new recSchema(a,b,w);
00042 }

Here is the call graph for this function:

Here is the caller graph for this function:

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