CIRCT
20.0.0git
|
Public Member Functions | |
str | get_type_str (self, types.ESIType type) |
str | get_consts_str (self, ModuleInfo module_info) |
def | write_modules (self, Path output_dir, str system_name) |
def | write_type (self, TextIO hdr, types.ESIType type) |
def | write_types (self, Path output_dir, str system_name) |
def | generate (self, Path output_dir, str system_name) |
Public Member Functions inherited from esiaccel.codegen.Generator | |
def | __init__ (self, AcceleratorConnection conn) |
Static Public Attributes | |
string | language = "C++" |
int_width_support = set([8, 16, 32, 64]) | |
Additional Inherited Members | |
Public Attributes inherited from esiaccel.codegen.Generator | |
manifest | |
Generate C++ headers from an ESI manifest.
Definition at line 33 of file codegen.py.
def esiaccel.codegen.CppGenerator.generate | ( | self, | |
Path | output_dir, | ||
str | system_name | ||
) |
Reimplemented from esiaccel.codegen.Generator.
Definition at line 115 of file codegen.py.
References esiaccel.codegen.CppGenerator.write_modules(), and esiaccel.codegen.CppGenerator.write_types().
str esiaccel.codegen.CppGenerator.get_consts_str | ( | self, | |
ModuleInfo | module_info | ||
) |
Get the C++ code for a constant in a module.
Definition at line 54 of file codegen.py.
str esiaccel.codegen.CppGenerator.get_type_str | ( | self, | |
types.ESIType | type | ||
) |
Get the textual code for the storage class of a type. Examples: uint32_t, int64_t, CustomStruct.
Definition at line 41 of file codegen.py.
References esiaccel.codegen.CppGenerator.int_width_support.
def esiaccel.codegen.CppGenerator.write_modules | ( | self, | |
Path | output_dir, | ||
str | system_name | ||
) |
Write the C++ header. One for each module in the manifest.
Definition at line 63 of file codegen.py.
References esiaccel.accelerator.AcceleratorConnection.manifest(), and esiaccel.codegen.Generator.manifest.
Referenced by esiaccel.codegen.CppGenerator.generate().
def esiaccel.codegen.CppGenerator.write_type | ( | self, | |
TextIO | hdr, | ||
types.ESIType | type | ||
) |
Definition at line 84 of file codegen.py.
Referenced by esiaccel.codegen.CppGenerator.write_types().
def esiaccel.codegen.CppGenerator.write_types | ( | self, | |
Path | output_dir, | ||
str | system_name | ||
) |
Definition at line 90 of file codegen.py.
References esiaccel.accelerator.AcceleratorConnection.manifest(), esiaccel.codegen.Generator.manifest, and esiaccel.codegen.CppGenerator.write_type().
Referenced by esiaccel.codegen.CppGenerator.generate().
|
static |
Definition at line 39 of file codegen.py.
Referenced by esiaccel.codegen.CppGenerator.get_type_str().
|
static |
Definition at line 36 of file codegen.py.