yosys-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
memory_share.cc File Reference
#include "kernel/yosys.h"
#include "kernel/satgen.h"
#include "kernel/sigtools.h"
#include "kernel/modtools.h"
+ Include dependency graph for memory_share.cc:

Go to the source code of this file.

Data Structures

struct  MemoryShareWorker
 
struct  MemorySharePass
 

Functions

USING_YOSYS_NAMESPACE
PRIVATE_NAMESPACE_BEGIN bool 
memcells_cmp (RTLIL::Cell *a, RTLIL::Cell *b)
 

Variables

MemorySharePass MemorySharePass
 

Function Documentation

Definition at line 28 of file memory_share.cc.

29 {
30  if (a->type == "$memrd" && b->type == "$memrd")
31  return a->name < b->name;
32  if (a->type == "$memrd" || b->type == "$memrd")
33  return (a->type == "$memrd") < (b->type == "$memrd");
34  return a->parameters.at("\\PRIORITY").as_int() < b->parameters.at("\\PRIORITY").as_int();
35 }
RTLIL::IdString name
Definition: rtlil.h:853
RTLIL::IdString type
Definition: rtlil.h:854
std::map< RTLIL::IdString, RTLIL::Const > parameters
Definition: rtlil.h:856

+ Here is the caller graph for this function:

Variable Documentation