yosys-master
|
#include <map>
#include <set>
#include <vector>
#include <string>
#include <algorithm>
#include <functional>
#include <initializer_list>
#include <sstream>
#include <fstream>
#include <istream>
#include <ostream>
#include <iostream>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdio.h>
#include "kernel/log.h"
#include "kernel/rtlil.h"
#include "kernel/register.h"
Go to the source code of this file.
Namespaces | |
RTLIL | |
Macros | |
#define | PRIVATE_NAMESPACE_BEGIN namespace { |
#define | PRIVATE_NAMESPACE_END } |
#define | YOSYS_NAMESPACE_BEGIN namespace Yosys { |
#define | YOSYS_NAMESPACE_END } |
#define | YOSYS_NAMESPACE_PREFIX Yosys:: |
#define | USING_YOSYS_NAMESPACE using namespace Yosys; |
#define | YS_OVERRIDE |
#define | YS_FINAL |
#define | YS_ATTRIBUTE(...) |
#define | YS_NORETURN |
#define | NEW_ID YOSYS_NAMESPACE_PREFIX new_id(__FILE__, __LINE__, __FUNCTION__) |
#define | ID(_str) ([]() { static YOSYS_NAMESPACE_PREFIX RTLIL::IdString _id(_str); return _id; })() |
Functions | |
std::string | stringf (const char *fmt,...) YS_ATTRIBUTE(format(printf |
std::string std::string | vstringf (const char *fmt, va_list ap) |
int | readsome (std::istream &f, char *s, int n) |
std::string | next_token (std::string &text, const char *sep) |
bool | patmatch (const char *pattern, const char *string) |
int | run_command (const std::string &command, std::function< void(const std::string &)> process_line=std::function< void(const std::string &)>()) |
std::string | make_temp_file (std::string template_str="/tmp/yosys_XXXXXX") |
std::string | make_temp_dir (std::string template_str="/tmp/yosys_XXXXXX") |
bool | check_file_exists (std::string filename, bool is_exec=false) |
void | remove_directory (std::string dirname) |
template<typename T > | |
int | GetSize (const T &obj) |
int | GetSize (RTLIL::Wire *wire) |
YOSYS_NAMESPACE_END YOSYS_NAMESPACE_BEGIN void | yosys_setup () |
void | yosys_shutdown () |
RTLIL::IdString | new_id (std::string file, int line, std::string func) |
RTLIL::Design * | yosys_get_design () |
std::string | proc_self_dirname () |
std::string | proc_share_dirname () |
const char * | create_prompt (RTLIL::Design *design, int recursion_counter) |
void | run_frontend (std::string filename, std::string command, RTLIL::Design *design, std::string *backend_command, std::string *from_to_label) |
void | run_pass (std::string command, RTLIL::Design *design) |
void | run_backend (std::string filename, std::string command, RTLIL::Design *design) |
void | shell (RTLIL::Design *design) |
void | load_plugin (std::string filename, std::vector< std::string > aliases) |
Variables | |
int | autoidx |
RTLIL::Design * | yosys_design |
const char * | yosys_version_str |
std::map< std::string, RTLIL::Design * > | saved_designs |
std::vector< RTLIL::Design * > | pushed_designs |
std::map< std::string, void * > | loaded_plugins |
std::map< std::string, std::string > | loaded_plugin_aliases |
#define ID | ( | _str | ) | ([]() { static YOSYS_NAMESPACE_PREFIX RTLIL::IdString _id(_str); return _id; })() |
#define NEW_ID YOSYS_NAMESPACE_PREFIX new_id(__FILE__, __LINE__, __FUNCTION__) |
bool check_file_exists | ( | std::string | filename, |
bool | is_exec = false |
||
) |
const char* create_prompt | ( | RTLIL::Design * | design, |
int | recursion_counter | ||
) |
Definition at line 400 of file yosys.cc.
int GetSize | ( | const T & | obj | ) |
int GetSize | ( | RTLIL::Wire * | wire | ) |
void load_plugin | ( | std::string | filename, |
std::vector< std::string > | aliases | ||
) |
std::string make_temp_dir | ( | std::string | template_str = "/tmp/yosys_XXXXXX" | ) |
std::string make_temp_file | ( | std::string | template_str = "/tmp/yosys_XXXXXX" | ) |
RTLIL::IdString new_id | ( | std::string | file, |
int | line, | ||
std::string | func | ||
) |
std::string next_token | ( | std::string & | text, |
const char * | sep | ||
) |
bool patmatch | ( | const char * | pattern, |
const char * | string | ||
) |
std::string proc_self_dirname | ( | ) |
std::string proc_share_dirname | ( | ) |
int readsome | ( | std::istream & | f, |
char * | s, | ||
int | n | ||
) |
void remove_directory | ( | std::string | dirname | ) |
Definition at line 308 of file yosys.cc.
void run_backend | ( | std::string | filename, |
std::string | command, | ||
RTLIL::Design * | design | ||
) |
Definition at line 703 of file yosys.cc.
int run_command | ( | const std::string & | command, |
std::function< void(const std::string &)> | process_line = std::function< void(const std::string &)>() |
||
) |
void run_frontend | ( | std::string | filename, |
std::string | command, | ||
RTLIL::Design * | design, | ||
std::string * | backend_command, | ||
std::string * | from_to_label | ||
) |
Definition at line 603 of file yosys.cc.
void run_pass | ( | std::string | command, |
RTLIL::Design * | design | ||
) |
void shell | ( | RTLIL::Design * | design | ) |
Definition at line 812 of file yosys.cc.
std::string stringf | ( | const char * | fmt, |
... | |||
) |
std::string std::string vstringf | ( | const char * | fmt, |
va_list | ap | ||
) |
RTLIL::Design* yosys_get_design | ( | ) |
YOSYS_NAMESPACE_END YOSYS_NAMESPACE_BEGIN void yosys_setup | ( | ) |
Definition at line 339 of file yosys.cc.
void yosys_shutdown | ( | ) |
Definition at line 346 of file yosys.cc.
std::vector<RTLIL::Design*> pushed_designs |
std::map<std::string, RTLIL::Design*> saved_designs |
RTLIL::Design* yosys_design |
const char* yosys_version_str |