yosys-master
|
#include "kernel/log.h"
#include "kernel/register.h"
#include "kernel/sigtools.h"
#include "kernel/consteval.h"
#include "kernel/celltypes.h"
#include "fsmdata.h"
#include <string>
#include <iostream>
#include <fstream>
Go to the source code of this file.
Data Structures | |
struct | FsmExportPass |
Functions | |
USING_YOSYS_NAMESPACE PRIVATE_NAMESPACE_BEGIN std::string | kiss_convert_signal (const RTLIL::SigSpec &sig) |
void | write_kiss2 (struct RTLIL::Module *module, struct RTLIL::Cell *cell, std::string filename, bool origenc) |
Variables | |
FsmExportPass | FsmExportPass |
USING_YOSYS_NAMESPACE PRIVATE_NAMESPACE_BEGIN std::string kiss_convert_signal | ( | const RTLIL::SigSpec & | sig | ) |
Convert a signal into a KISS-compatible textual representation.
Definition at line 37 of file fsm_export.cc.
void write_kiss2 | ( | struct RTLIL::Module * | module, |
struct RTLIL::Cell * | cell, | ||
std::string | filename, | ||
bool | origenc | ||
) |
Create a KISS2 file from a cell.
The destination file name is taken from the fsm_export attribute if present, e.g. (* fsm_export="filename.kiss2" *). If this attribute is not present, the file name will be assembled from the module and cell names.
module | pointer to module which contains the FSM cell. |
cell | pointer to the FSM cell which should be exported. |
Definition at line 52 of file fsm_export.cc.