#include "compile_scal.hh"
#include "compile.hh"
#include "sigtyperules.hh"
#include "tlib.hh"
#include "property.hh"
#include "timing.hh"
#include "sigtype.hh"
#include <stdio.h>
#include <iostream>
#include <sstream>
#include <vector>
#include <math.h>
#include "floats.hh"
#include "sigprint.hh"
#include "recursivness.hh"
#include "simplify.hh"
#include "privatise.hh"
#include "prim2.hh"
#include "xtended.hh"
#include "compatibility.hh"
#include "ppsig.hh"
Go to the source code of this file.
Functions | |
static Klass * | signal2klass (const string &name, Tree sig) |
static bool | isPowerOf2 (int n) |
Variables | |
bool | gLessTempSwitch |
int | gMaxCopyDelay |
static bool isPowerOf2 | ( | int | n | ) | [static] |
Definition at line 837 of file compile_scal.cpp.
Referenced by ScalarCompiler::generateIota().
Definition at line 55 of file compile_scal.cpp.
References ScalarCompiler::compileSingleSignal(), Compiler::getClass(), getSigType(), and kInt.
Referenced by ScalarCompiler::generateSigGen(), and ScalarCompiler::generateStaticSigGen().
00056 { 00057 Type t = getSigType(sig); //, NULLENV); 00058 if (t->nature() == kInt) { 00059 00060 ScalarCompiler C( new SigIntGenKlass(name) ); 00061 C.compileSingleSignal(sig); 00062 return C.getClass(); 00063 00064 } else { 00065 00066 ScalarCompiler C( new SigFloatGenKlass(name) ); 00067 C.compileSingleSignal(sig); 00068 return C.getClass(); 00069 00070 } 00071 }
bool gLessTempSwitch |
int gMaxCopyDelay |