yosys-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
register.h File Reference
#include "kernel/yosys.h"
+ Include dependency graph for register.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Pass
 
struct  Pass::pre_post_exec_state_t
 
struct  Frontend
 
struct  Backend
 

Functions

void handle_extra_select_args (Pass *pass, std::vector< std::string > args, size_t argidx, size_t args_size, RTLIL::Design *design)
 

Variables

std::map< std::string, Pass * > pass_register
 
std::map< std::string, Frontend * > frontend_register
 
std::map< std::string, Backend * > backend_register
 

Function Documentation

void handle_extra_select_args ( Pass pass,
std::vector< std::string >  args,
size_t  argidx,
size_t  args_size,
RTLIL::Design design 
)

Definition at line 803 of file select.cc.

804 {
805  work_stack.clear();
806  for (; argidx < args_size; argidx++) {
807  if (args[argidx].substr(0, 1) == "-") {
808  if (pass != NULL)
809  pass->cmd_error(args, argidx, "Unexpected option in selection arguments.");
810  else
811  log_cmd_error("Unexpected option in selection arguments.");
812  }
813  select_stmt(design, args[argidx]);
814  }
815  while (work_stack.size() > 1) {
816  select_op_union(design, work_stack.front(), work_stack.back());
817  work_stack.pop_back();
818  }
819  if (work_stack.size() > 0)
820  design->selection_stack.push_back(work_stack.back());
821  else
822  design->selection_stack.push_back(RTLIL::Selection(false));
823 }
void cmd_error(const std::vector< std::string > &args, size_t argidx, std::string msg)
Definition: register.cc:110
std::vector< RTLIL::Selection > selection_stack
Definition: rtlil.h:509
static std::vector< RTLIL::Selection > work_stack
Definition: select.cc:31
static void select_stmt(RTLIL::Design *design, std::string arg)
Definition: select.cc:564
void log_cmd_error(const char *format,...)
Definition: log.cc:211
#define NULL
static void select_op_union(RTLIL::Design *, RTLIL::Selection &lhs, const RTLIL::Selection &rhs)
Definition: select.cc:229

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

std::map<std::string, Backend*> backend_register

Definition at line 36 of file register.cc.

std::map<std::string, Frontend*> frontend_register

Definition at line 34 of file register.cc.

std::map<std::string, Pass*> pass_register

Definition at line 35 of file register.cc.