46 for (
int i = 0;
isList(L); L =
tl(L), i++) {
102 string buf =
subst(
"$0_tmp", dlname);
103 string pmem=
subst(
"$0_perm", dlname);
106 delay = (delay+3)&-4;
109 string dsize =
T(delay);
141 string dsize =
T(delay);
142 string mask =
T(delay-1);
145 string idx =
subst(
"$0_idx", dlname);
146 string idx_save =
subst(
"$0_idx_save", dlname);
void addSharedDecl(const string &str)
virtual void compileMultiSignal(Tree L)
virtual string CS(Tree sig)
Compile a signal.
Description * fDescription
int pow2limit(int x)
Compute the minimal power of 2 greater than x.
void addExecCode(const string &str)
Tree prepareUserInterfaceTree(Tree t)
Remove fake root folder if not needed (that is if the UI is completely enclosed in one folder...
void generateUserInterfaceTree(Tree t)
Generate buildUserInterface C++ lines of code corresponding to user interface element t...
A CTree = (Node x [CTree]) is a Node associated with a list of subtrees called branches.
void openLoop(const string &size)
Open a non-recursive loop on top of the stack of open loops.
void closeLoop(Tree sig)
Close the top loop and either keep it or absorb it within its enclosing loop.
void addInitCode(const string &str)
void generateMacroInterfaceTree(const string &pathname, Tree t)
Generate user interface macros corresponding to user interface element t.
void addFirstPrivateDecl(const string &str)
void addPreCode(const string &str)
void addZone2(const string &str)
string subst(const string &model, const vector< string > &args)
Text substitution.
virtual void vectorLoop(const string &tname, const string &dlname, const string &cexp)
Generate the code for a (short) delay line.
void addPostCode(const string &str)
void addZone3(const string &str)
virtual void dlineLoop(const string &tname, const string &dlname, int delay, const string &cexp)
Generate the code for a (short) delay line.
void addDeclCode(const string &str)