yosys-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
hilomap.cc File Reference
#include "kernel/register.h"
#include "kernel/rtlil.h"
#include "kernel/log.h"
+ Include dependency graph for hilomap.cc:

Go to the source code of this file.

Data Structures

struct  HilomapPass
 

Functions

void hilomap_worker (RTLIL::SigSpec &sig)
 

Variables

USING_YOSYS_NAMESPACE static
PRIVATE_NAMESPACE_BEGIN
std::string 
hicell_celltype
 
USING_YOSYS_NAMESPACE static
PRIVATE_NAMESPACE_BEGIN
std::string 
hicell_portname
 
static std::string locell_celltype
 
static std::string locell_portname
 
static bool singleton_mode
 
static RTLIL::Modulemodule
 
static RTLIL::SigBit last_hi
 
static RTLIL::SigBit last_lo
 
HilomapPass HilomapPass
 

Function Documentation

void hilomap_worker ( RTLIL::SigSpec sig)

Definition at line 34 of file hilomap.cc.

35 {
36  for (auto &bit : sig) {
37  if (bit == RTLIL::State::S1 && !hicell_celltype.empty()) {
42  }
43  bit = last_hi;
44  }
45  if (bit == RTLIL::State::S0 && !locell_celltype.empty()) {
50  }
51  bit = last_lo;
52  }
53  }
54 }
USING_YOSYS_NAMESPACE static PRIVATE_NAMESPACE_BEGIN std::string hicell_portname
Definition: hilomap.cc:27
static bool singleton_mode
Definition: hilomap.cc:29
RTLIL::Cell * addCell(RTLIL::IdString name, RTLIL::IdString type)
Definition: rtlil.cc:1353
static RTLIL::SigBit last_lo
Definition: hilomap.cc:32
void setPort(RTLIL::IdString portname, RTLIL::SigSpec signal)
Definition: rtlil.cc:1789
USING_YOSYS_NAMESPACE static PRIVATE_NAMESPACE_BEGIN std::string hicell_celltype
Definition: hilomap.cc:27
static std::string locell_portname
Definition: hilomap.cc:28
static std::string escape_id(std::string str)
Definition: rtlil.h:251
static RTLIL::SigBit last_hi
Definition: hilomap.cc:32
RTLIL::Wire * addWire(RTLIL::IdString name, int width=1)
Definition: rtlil.cc:1331
#define NEW_ID
Definition: yosys.h:166
static RTLIL::Module * module
Definition: hilomap.cc:31
static std::string locell_celltype
Definition: hilomap.cc:28

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

USING_YOSYS_NAMESPACE static PRIVATE_NAMESPACE_BEGIN std::string hicell_celltype
static

Definition at line 27 of file hilomap.cc.

USING_YOSYS_NAMESPACE static PRIVATE_NAMESPACE_BEGIN std::string hicell_portname
static

Definition at line 27 of file hilomap.cc.

RTLIL::SigBit last_hi
static

Definition at line 32 of file hilomap.cc.

RTLIL::SigBit last_lo
static

Definition at line 32 of file hilomap.cc.

std::string locell_celltype
static

Definition at line 28 of file hilomap.cc.

std::string locell_portname
static

Definition at line 28 of file hilomap.cc.

RTLIL::Module* module
static

Definition at line 31 of file hilomap.cc.

bool singleton_mode
static

Definition at line 29 of file hilomap.cc.