| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452 |
- #ifndef ASSIGNMENTASEXPRESSION_H_
- #define ASSIGNMENTASEXPRESSION_H_
- #include "sc_types.h"
- #include "StatemachineInterface.h"
- /*! \file Header of the state machine 'AssignmentAsExpression'.
- */
- class AssignmentAsExpression : public StatemachineInterface
- {
-
- public:
-
- AssignmentAsExpression();
-
- ~AssignmentAsExpression();
-
- /*! Enumeration of all states */
- typedef enum
- {
- main_region_Add,
- main_region_Multiply,
- main_region_Divide,
- main_region_Modulo,
- main_region_Shift,
- main_region_boolean_And,
- main_region_boolean_Or,
- main_region_boolean_Xor,
- main_region_Subtract,
- AssignmentAsExpression_last_state
- } AssignmentAsExpressionStates;
-
- //! Inner class for default interface scope.
- class DefaultSCI
- {
-
- public:
- /*! Gets the value of the variable 'a' that is defined in the default interface scope. */
- sc_integer get_a() const;
-
- /*! Sets the value of the variable 'a' that is defined in the default interface scope. */
- void set_a(sc_integer value);
-
- /*! Gets the value of the variable 'b' that is defined in the default interface scope. */
- sc_integer get_b() const;
-
- /*! Sets the value of the variable 'b' that is defined in the default interface scope. */
- void set_b(sc_integer value);
-
- /*! Gets the value of the variable 'c' that is defined in the default interface scope. */
- sc_integer get_c() const;
-
- /*! Sets the value of the variable 'c' that is defined in the default interface scope. */
- void set_c(sc_integer value);
-
- /*! Gets the value of the variable 'd' that is defined in the default interface scope. */
- sc_integer get_d() const;
-
- /*! Sets the value of the variable 'd' that is defined in the default interface scope. */
- void set_d(sc_integer value);
-
- /*! Gets the value of the variable 'e' that is defined in the default interface scope. */
- sc_integer get_e() const;
-
- /*! Sets the value of the variable 'e' that is defined in the default interface scope. */
- void set_e(sc_integer value);
-
- /*! Gets the value of the variable 'f' that is defined in the default interface scope. */
- sc_integer get_f() const;
-
- /*! Sets the value of the variable 'f' that is defined in the default interface scope. */
- void set_f(sc_integer value);
-
- /*! Gets the value of the variable 'g' that is defined in the default interface scope. */
- sc_integer get_g() const;
-
- /*! Sets the value of the variable 'g' that is defined in the default interface scope. */
- void set_g(sc_integer value);
-
- /*! Gets the value of the variable 'h' that is defined in the default interface scope. */
- sc_integer get_h() const;
-
- /*! Sets the value of the variable 'h' that is defined in the default interface scope. */
- void set_h(sc_integer value);
-
- /*! Gets the value of the variable 'i' that is defined in the default interface scope. */
- sc_integer get_i() const;
-
- /*! Sets the value of the variable 'i' that is defined in the default interface scope. */
- void set_i(sc_integer value);
-
- /*! Gets the value of the variable 'i1' that is defined in the default interface scope. */
- sc_integer get_i1() const;
-
- /*! Sets the value of the variable 'i1' that is defined in the default interface scope. */
- void set_i1(sc_integer value);
-
- /*! Gets the value of the variable 'j' that is defined in the default interface scope. */
- sc_integer get_j() const;
-
- /*! Sets the value of the variable 'j' that is defined in the default interface scope. */
- void set_j(sc_integer value);
-
- /*! Gets the value of the variable 'j1' that is defined in the default interface scope. */
- sc_integer get_j1() const;
-
- /*! Sets the value of the variable 'j1' that is defined in the default interface scope. */
- void set_j1(sc_integer value);
-
- /*! Gets the value of the variable 'k' that is defined in the default interface scope. */
- sc_integer get_k() const;
-
- /*! Sets the value of the variable 'k' that is defined in the default interface scope. */
- void set_k(sc_integer value);
-
- /*! Gets the value of the variable 'k1' that is defined in the default interface scope. */
- sc_integer get_k1() const;
-
- /*! Sets the value of the variable 'k1' that is defined in the default interface scope. */
- void set_k1(sc_integer value);
-
- /*! Gets the value of the variable 'l' that is defined in the default interface scope. */
- sc_integer get_l() const;
-
- /*! Sets the value of the variable 'l' that is defined in the default interface scope. */
- void set_l(sc_integer value);
-
- /*! Gets the value of the variable 'm' that is defined in the default interface scope. */
- sc_integer get_m() const;
-
- /*! Sets the value of the variable 'm' that is defined in the default interface scope. */
- void set_m(sc_integer value);
-
- /*! Gets the value of the variable 'n' that is defined in the default interface scope. */
- sc_integer get_n() const;
-
- /*! Sets the value of the variable 'n' that is defined in the default interface scope. */
- void set_n(sc_integer value);
-
- /*! Gets the value of the variable 'p' that is defined in the default interface scope. */
- sc_integer get_p() const;
-
- /*! Sets the value of the variable 'p' that is defined in the default interface scope. */
- void set_p(sc_integer value);
-
- /*! Gets the value of the variable 'r' that is defined in the default interface scope. */
- sc_integer get_r() const;
-
- /*! Sets the value of the variable 'r' that is defined in the default interface scope. */
- void set_r(sc_integer value);
-
- /*! Gets the value of the variable 't' that is defined in the default interface scope. */
- sc_integer get_t() const;
-
- /*! Sets the value of the variable 't' that is defined in the default interface scope. */
- void set_t(sc_integer value);
-
- /*! Gets the value of the variable 'u' that is defined in the default interface scope. */
- sc_integer get_u() const;
-
- /*! Sets the value of the variable 'u' that is defined in the default interface scope. */
- void set_u(sc_integer value);
-
- /*! Gets the value of the variable 'v' that is defined in the default interface scope. */
- sc_integer get_v() const;
-
- /*! Sets the value of the variable 'v' that is defined in the default interface scope. */
- void set_v(sc_integer value);
-
- /*! Gets the value of the variable 'w' that is defined in the default interface scope. */
- sc_integer get_w() const;
-
- /*! Sets the value of the variable 'w' that is defined in the default interface scope. */
- void set_w(sc_integer value);
-
-
- private:
- friend class AssignmentAsExpression;
- sc_integer a;
- sc_integer b;
- sc_integer c;
- sc_integer d;
- sc_integer e;
- sc_integer f;
- sc_integer g;
- sc_integer h;
- sc_integer i;
- sc_integer i1;
- sc_integer j;
- sc_integer j1;
- sc_integer k;
- sc_integer k1;
- sc_integer l;
- sc_integer m;
- sc_integer n;
- sc_integer p;
- sc_integer r;
- sc_integer t;
- sc_integer u;
- sc_integer v;
- sc_integer w;
- };
-
-
- /*! Returns an instance of the interface class 'DefaultSCI'. */
- DefaultSCI* getDefaultSCI();
-
- /*! Gets the value of the variable 'a' that is defined in the default interface scope. */
- sc_integer get_a() const;
-
- /*! Sets the value of the variable 'a' that is defined in the default interface scope. */
- void set_a(sc_integer value);
-
- /*! Gets the value of the variable 'b' that is defined in the default interface scope. */
- sc_integer get_b() const;
-
- /*! Sets the value of the variable 'b' that is defined in the default interface scope. */
- void set_b(sc_integer value);
-
- /*! Gets the value of the variable 'c' that is defined in the default interface scope. */
- sc_integer get_c() const;
-
- /*! Sets the value of the variable 'c' that is defined in the default interface scope. */
- void set_c(sc_integer value);
-
- /*! Gets the value of the variable 'd' that is defined in the default interface scope. */
- sc_integer get_d() const;
-
- /*! Sets the value of the variable 'd' that is defined in the default interface scope. */
- void set_d(sc_integer value);
-
- /*! Gets the value of the variable 'e' that is defined in the default interface scope. */
- sc_integer get_e() const;
-
- /*! Sets the value of the variable 'e' that is defined in the default interface scope. */
- void set_e(sc_integer value);
-
- /*! Gets the value of the variable 'f' that is defined in the default interface scope. */
- sc_integer get_f() const;
-
- /*! Sets the value of the variable 'f' that is defined in the default interface scope. */
- void set_f(sc_integer value);
-
- /*! Gets the value of the variable 'g' that is defined in the default interface scope. */
- sc_integer get_g() const;
-
- /*! Sets the value of the variable 'g' that is defined in the default interface scope. */
- void set_g(sc_integer value);
-
- /*! Gets the value of the variable 'h' that is defined in the default interface scope. */
- sc_integer get_h() const;
-
- /*! Sets the value of the variable 'h' that is defined in the default interface scope. */
- void set_h(sc_integer value);
-
- /*! Gets the value of the variable 'i' that is defined in the default interface scope. */
- sc_integer get_i() const;
-
- /*! Sets the value of the variable 'i' that is defined in the default interface scope. */
- void set_i(sc_integer value);
-
- /*! Gets the value of the variable 'i1' that is defined in the default interface scope. */
- sc_integer get_i1() const;
-
- /*! Sets the value of the variable 'i1' that is defined in the default interface scope. */
- void set_i1(sc_integer value);
-
- /*! Gets the value of the variable 'j' that is defined in the default interface scope. */
- sc_integer get_j() const;
-
- /*! Sets the value of the variable 'j' that is defined in the default interface scope. */
- void set_j(sc_integer value);
-
- /*! Gets the value of the variable 'j1' that is defined in the default interface scope. */
- sc_integer get_j1() const;
-
- /*! Sets the value of the variable 'j1' that is defined in the default interface scope. */
- void set_j1(sc_integer value);
-
- /*! Gets the value of the variable 'k' that is defined in the default interface scope. */
- sc_integer get_k() const;
-
- /*! Sets the value of the variable 'k' that is defined in the default interface scope. */
- void set_k(sc_integer value);
-
- /*! Gets the value of the variable 'k1' that is defined in the default interface scope. */
- sc_integer get_k1() const;
-
- /*! Sets the value of the variable 'k1' that is defined in the default interface scope. */
- void set_k1(sc_integer value);
-
- /*! Gets the value of the variable 'l' that is defined in the default interface scope. */
- sc_integer get_l() const;
-
- /*! Sets the value of the variable 'l' that is defined in the default interface scope. */
- void set_l(sc_integer value);
-
- /*! Gets the value of the variable 'm' that is defined in the default interface scope. */
- sc_integer get_m() const;
-
- /*! Sets the value of the variable 'm' that is defined in the default interface scope. */
- void set_m(sc_integer value);
-
- /*! Gets the value of the variable 'n' that is defined in the default interface scope. */
- sc_integer get_n() const;
-
- /*! Sets the value of the variable 'n' that is defined in the default interface scope. */
- void set_n(sc_integer value);
-
- /*! Gets the value of the variable 'p' that is defined in the default interface scope. */
- sc_integer get_p() const;
-
- /*! Sets the value of the variable 'p' that is defined in the default interface scope. */
- void set_p(sc_integer value);
-
- /*! Gets the value of the variable 'r' that is defined in the default interface scope. */
- sc_integer get_r() const;
-
- /*! Sets the value of the variable 'r' that is defined in the default interface scope. */
- void set_r(sc_integer value);
-
- /*! Gets the value of the variable 't' that is defined in the default interface scope. */
- sc_integer get_t() const;
-
- /*! Sets the value of the variable 't' that is defined in the default interface scope. */
- void set_t(sc_integer value);
-
- /*! Gets the value of the variable 'u' that is defined in the default interface scope. */
- sc_integer get_u() const;
-
- /*! Sets the value of the variable 'u' that is defined in the default interface scope. */
- void set_u(sc_integer value);
-
- /*! Gets the value of the variable 'v' that is defined in the default interface scope. */
- sc_integer get_v() const;
-
- /*! Sets the value of the variable 'v' that is defined in the default interface scope. */
- void set_v(sc_integer value);
-
- /*! Gets the value of the variable 'w' that is defined in the default interface scope. */
- sc_integer get_w() const;
-
- /*! Sets the value of the variable 'w' that is defined in the default interface scope. */
- void set_w(sc_integer value);
-
-
- /*
- * Functions inherited from StatemachineInterface
- */
- virtual void init();
-
- virtual void enter();
-
- virtual void exit();
-
- virtual void runCycle();
-
- /*!
- * Checks if the state machine is active (until 2.4.1 this method was used for states).
- * A state machine is active if it has been entered. It is inactive if it has not been entered at all or if it has been exited.
- */
- virtual sc_boolean isActive() const;
-
-
- /*!
- * Checks if all active states are final.
- * If there are no active states then the state machine is considered being inactive. In this case this method returns false.
- */
- virtual sc_boolean isFinal() const;
-
-
- /*! Checks if the specified state is active (until 2.4.1 the used method for states was calles isActive()). */
- sc_boolean isStateActive(AssignmentAsExpressionStates state) const;
-
- private:
-
-
- //! the maximum number of orthogonal states defines the dimension of the state configuration vector.
- static const sc_integer maxOrthogonalStates = 1;
-
-
- AssignmentAsExpressionStates stateConfVector[maxOrthogonalStates];
-
- sc_ushort stateConfVectorPosition;
-
- DefaultSCI iface;
-
- // prototypes of all internal functions
-
- sc_boolean check_main_region_Add_tr0_tr0();
- sc_boolean check_main_region_Multiply_tr0_tr0();
- sc_boolean check_main_region_Divide_tr0_tr0();
- sc_boolean check_main_region_Modulo_tr0_tr0();
- sc_boolean check_main_region_Shift_tr0_tr0();
- sc_boolean check_main_region_boolean_And_tr0_tr0();
- sc_boolean check_main_region_boolean_Or_tr0_tr0();
- sc_boolean check_main_region_Subtract_tr0_tr0();
- void effect_main_region_Add_tr0();
- void effect_main_region_Multiply_tr0();
- void effect_main_region_Divide_tr0();
- void effect_main_region_Modulo_tr0();
- void effect_main_region_Shift_tr0();
- void effect_main_region_boolean_And_tr0();
- void effect_main_region_boolean_Or_tr0();
- void effect_main_region_Subtract_tr0();
- void enact_main_region_Add();
- void enact_main_region_Multiply();
- void enact_main_region_Divide();
- void enact_main_region_Modulo();
- void enact_main_region_Shift();
- void enact_main_region_boolean_And();
- void enact_main_region_boolean_Or();
- void enact_main_region_boolean_Xor();
- void enact_main_region_Subtract();
- void enseq_main_region_Add_default();
- void enseq_main_region_Multiply_default();
- void enseq_main_region_Divide_default();
- void enseq_main_region_Modulo_default();
- void enseq_main_region_Shift_default();
- void enseq_main_region_boolean_And_default();
- void enseq_main_region_boolean_Or_default();
- void enseq_main_region_boolean_Xor_default();
- void enseq_main_region_Subtract_default();
- void enseq_main_region_default();
- void exseq_main_region_Add();
- void exseq_main_region_Multiply();
- void exseq_main_region_Divide();
- void exseq_main_region_Modulo();
- void exseq_main_region_Shift();
- void exseq_main_region_boolean_And();
- void exseq_main_region_boolean_Or();
- void exseq_main_region_boolean_Xor();
- void exseq_main_region_Subtract();
- void exseq_main_region();
- void react_main_region_Add();
- void react_main_region_Multiply();
- void react_main_region_Divide();
- void react_main_region_Modulo();
- void react_main_region_Shift();
- void react_main_region_boolean_And();
- void react_main_region_boolean_Or();
- void react_main_region_boolean_Xor();
- void react_main_region_Subtract();
- void react_main_region__entry_Default();
- void clearInEvents();
- void clearOutEvents();
-
- };
- #endif /* ASSIGNMENTASEXPRESSION_H_ */
|