|
OpenASIP 2.2
|
#include <HDLGenerator.hh>


Public Member Functions | |
| Case () | |
| Case (std::string stringCase) | |
| template<typename SS > | |
| Case & | operator<< (SS op) |
| Case & | operator<< (BinaryLiteral &&rhs) |
| Case & | operator<< (BinaryLiteral &rhs) |
| Case & | operator<< (int rhs) |
| Case & | operator<< (std::string &rhs) |
| Case & | operator<< (std::string &&rhs) |
| void | hdl (std::ostream &stream, Language lang, int level) override |
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 Register & | getRegister (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) |
| 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 |
| Generatable * | parent () const noexcept |
Private Attributes | |
| std::string | stringCase_ |
| std::vector< int > | intCases_ |
| std::vector< BinaryLiteral > | binaryCases_ |
Case in a switch-case.
Definition at line 646 of file HDLGenerator.hh.
|
inline |
Definition at line 648 of file HDLGenerator.hh.
|
inline |
Definition at line 649 of file HDLGenerator.hh.
|
inlineoverridevirtual |
Reimplemented from HDLGenerator::Generatable.
Definition at line 684 of file HDLGenerator.hh.
References binaryCases_, HDLGenerator::Generatable::implementAll(), StringTools::indent(), intCases_, stringCase_, HDLGenerator::Verilog, and HDLGenerator::VHDL.

|
inline |
Definition at line 659 of file HDLGenerator.hh.
References binaryCases_.
|
inline |
Definition at line 664 of file HDLGenerator.hh.
References binaryCases_.
|
inline |
Definition at line 669 of file HDLGenerator.hh.
References intCases_.
|
inline |
Definition at line 653 of file HDLGenerator.hh.
References HDLGenerator::Generatable::pushComponent().

|
inline |
Definition at line 679 of file HDLGenerator.hh.
References stringCase_.
|
inline |
Definition at line 674 of file HDLGenerator.hh.
References stringCase_.
|
private |
Definition at line 738 of file HDLGenerator.hh.
Referenced by hdl(), operator<<(), and operator<<().
|
private |
Definition at line 737 of file HDLGenerator.hh.
Referenced by hdl(), and operator<<().
|
private |
Definition at line 736 of file HDLGenerator.hh.
Referenced by hdl(), operator<<(), and operator<<().