OpenASIP 2.2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
HDLGenerator::Behaviour Class Reference

#include <HDLGenerator.hh>

Inheritance diagram for HDLGenerator::Behaviour:
Inheritance graph
Collaboration diagram for HDLGenerator::Behaviour:
Collaboration graph

Public Member Functions

 Behaviour ()
 
virtual ~Behaviour ()=default
 
Behaviouroperator<< (Synchronous &rhs)
 
Behaviouroperator<< (Asynchronous &rhs)
 
Behaviouroperator<< (Synchronous &&rhs)
 
Behaviouroperator<< (NewLine &rhs)
 
Behaviouroperator<< (NewLine &&rhs)
 
Behaviouroperator<< (Assign &assignment)
 
Behaviouroperator<< (Assign &&assignment)
 
void behaviour (std::ostream &stream, Language lang, int level)
 
- Public Member Functions inherited from HDLGenerator::Generatable
 Generatable (std::string name)
 
virtual ~Generatable ()=default
 
virtual void build ()
 
virtual void reads (const std::string &var)
 
virtual void reads (const LHSValue &var)
 
virtual void writes (const std::string &var)
 
virtual RegistergetRegister (const std::string &var)
 
virtual bool hasOption (const std::string &var)
 
virtual bool isRegister (const std::string &name)
 
virtual bool isVariable (const std::string &name)
 
virtual bool isConstant (const std::string &name)
 
virtual Width width (const std::string &name)
 
int integerWidth (const std::string &name)
 
virtual WireType wireType (const std::string &name)
 
virtual Width width ()
 
virtual WireType wireType () const
 
virtual void hdl (std::ostream &stream, Language lang, int indent)
 
virtual void hdl (std::ostream &stream, Language lang)
 
virtual void implementAll (std::ostream &stream, Language lang)
 
virtual void implementAll (std::ostream &stream, Language lang, int indent)
 
template<typename Func >
void forAll (Func func)
 
template<typename Type , typename Func >
void forAll (Func func)
 
template<class Type >
bool parentIs ()
 
template<class Type >
Type * parentType ()
 
void pushComponent (std::shared_ptr< Generatable > c)
 
template<class Component >
void addComponent (Component c)
 
const std::string & name () const noexcept
 
void setParent (Generatable *parent) noexcept
 
Generatableparent () const noexcept
 

Detailed Description

Wrapper for behavioral code constructs.

Definition at line 1111 of file HDLGenerator.hh.

Constructor & Destructor Documentation

◆ Behaviour()

HDLGenerator::Behaviour::Behaviour ( )
inline

Definition at line 1113 of file HDLGenerator.hh.

1113: Generatable("behaviour") {}
Generatable(std::string name)

◆ ~Behaviour()

virtual HDLGenerator::Behaviour::~Behaviour ( )
virtualdefault

Member Function Documentation

◆ behaviour()

void HDLGenerator::Behaviour::behaviour ( std::ostream &  stream,
Language  lang,
int  level 
)
inline

Definition at line 1151 of file HDLGenerator.hh.

1152 {
1153 forAll([&](std::shared_ptr<Generatable> c) {
1154 c->hdl(stream, lang, level);
1155 });
1156 }

References HDLGenerator::Generatable::forAll().

Here is the call graph for this function:

◆ operator<<() [1/7]

Behaviour & HDLGenerator::Behaviour::operator<< ( Assign &&  assignment)
inline

Definition at line 1146 of file HDLGenerator.hh.

1146 {
1147 addComponent(assignment);
1148 return *this;
1149 }
void addComponent(Component c)

References HDLGenerator::Generatable::addComponent().

Here is the call graph for this function:

◆ operator<<() [2/7]

Behaviour & HDLGenerator::Behaviour::operator<< ( Assign assignment)
inline

Definition at line 1141 of file HDLGenerator.hh.

1141 {
1142 addComponent(assignment);
1143 return *this;
1144 }

References HDLGenerator::Generatable::addComponent().

Here is the call graph for this function:

◆ operator<<() [3/7]

Behaviour & HDLGenerator::Behaviour::operator<< ( Asynchronous rhs)
inline

Definition at line 1121 of file HDLGenerator.hh.

1121 {
1122 addComponent(std::forward<Asynchronous>(rhs));
1123 return *this;
1124 }

References HDLGenerator::Generatable::addComponent().

Here is the call graph for this function:

◆ operator<<() [4/7]

Behaviour & HDLGenerator::Behaviour::operator<< ( NewLine &&  rhs)
inline

Definition at line 1136 of file HDLGenerator.hh.

1136 {
1137 addComponent(rhs);
1138 return *this;
1139 }

References HDLGenerator::Generatable::addComponent().

Here is the call graph for this function:

◆ operator<<() [5/7]

Behaviour & HDLGenerator::Behaviour::operator<< ( NewLine rhs)
inline

Definition at line 1131 of file HDLGenerator.hh.

1131 {
1132 addComponent(rhs);
1133 return *this;
1134 }

References HDLGenerator::Generatable::addComponent().

Here is the call graph for this function:

◆ operator<<() [6/7]

Behaviour & HDLGenerator::Behaviour::operator<< ( Synchronous &&  rhs)
inline

Definition at line 1126 of file HDLGenerator.hh.

1126 {
1127 addComponent(rhs);
1128 return *this;
1129 }

References HDLGenerator::Generatable::addComponent().

Here is the call graph for this function:

◆ operator<<() [7/7]

Behaviour & HDLGenerator::Behaviour::operator<< ( Synchronous rhs)
inline

Definition at line 1116 of file HDLGenerator.hh.

1116 {
1117 addComponent(std::forward<Synchronous>(rhs));
1118 return *this;
1119 }

References HDLGenerator::Generatable::addComponent().

Here is the call graph for this function:

The documentation for this class was generated from the following file: