sy_helpers.hpp
Go to the documentation of this file.
source< T > * make_source(const std::string &pName, const typename source< T >::functype &_func, const abst_ext< T > &initval, const unsigned long long &take, OIf< T > &outS)
Helper function to construct a source process.
Definition: sy_helpers.hpp:369
Process constructor for a hold process.
Definition: sy_process_constructors.hpp:942
file_sink< T > * make_file_sink(std::string pName, typename file_sink< T >::functype _func, std::string file_name, IIf< T > &inS)
Helper function to construct a file_sink process.
Definition: sy_helpers.hpp:452
SY_in< T > iport1
port for the input channel
Definition: sy_process_constructors.hpp:1976
SY_in< T > iport1
port for the input channel
Definition: sy_process_constructors.hpp:1342
Implements the basic process constructors in the SY MoC.
SY_in< T1 > iport1
port for the input channel 1
Definition: sy_process_constructors.hpp:130
constant< T > * make_constant(const std::string &pName, const abst_ext< T > &initval, const unsigned long long &take, OIf< T > &outS)
Helper function to construct a constant source process.
Definition: sy_helpers.hpp:348
unzipX< T1, N > * make_unzipX(const std::string &pName, IIf< std::array< abst_ext< T1 >, N >> &inpS)
Helper function to construct an unzipX process.
Definition: sy_helpers.hpp:546
SY_in< T > iport1
port for the input channel
Definition: sy_process_constructors.hpp:868
std::function< void(std::string &, const abst_ext< T > &)> functype
Type of the function to be passed to the process constructor.
Definition: sy_process_constructors.hpp:1417
The group process with one input and one absent-extended output.
Definition: sy_process_constructors.hpp:1973
SY_in< T > iport1
port for the input channel
Definition: sy_process_constructors.hpp:945
SY_in< T > iport1
port for the input channel
Definition: sy_process_constructors.hpp:1414
mealy< IT, ST, OT > * make_mealy(const std::string &pName, const typename mealy< IT, ST, OT >::ns_functype &_ns_func, const typename mealy< IT, ST, OT >::od_functype &_od_func, const ST &init_st, OIf< OT > &outS, IIf< IT > &inpS)
Helper function to construct a mealy process.
Definition: sy_helpers.hpp:255
sink< T > * make_sink(const std::string &pName, const typename sink< T >::functype &_func, IIf< T > &inS)
Helper function to construct a sink process.
Definition: sy_helpers.hpp:432
fill< T > * make_fill(const std::string &pName, const T &def_val, OIf< T > &outS, IIf< T > &inpS)
Helper function to construct a fill process.
Definition: sy_helpers.hpp:280
moore< IT, ST, OT > * make_moore(const std::string &pName, const typename moore< IT, ST, OT >::ns_functype &_ns_func, const typename moore< IT, ST, OT >::od_functype &_od_func, const ST &init_st, OIf< OT > &outS, IIf< IT > &inpS)
Helper function to construct a moore process.
Definition: sy_helpers.hpp:229
Process constructor for a file_sink process.
Definition: sy_process_constructors.hpp:1411
std::function< void(abst_ext< T > &, const std::string &)> functype
Type of the function to be passed to the process constructor.
Definition: sy_process_constructors.hpp:1190
std::function< void(abst_ext< T > &, const abst_ext< T > &)> functype
Type of the function to be passed to the process constructor.
Definition: sy_process_constructors.hpp:1098
Process constructor for a fill process.
Definition: sy_process_constructors.hpp:865
Implements the Absent-extended values.
Process constructor for a delay element.
Definition: sy_process_constructors.hpp:494
SY_in< T1 > iport1
port for the input channel 1
Definition: sy_process_constructors.hpp:216
Process constructor for a n-delay element.
Definition: sy_process_constructors.hpp:570
SY_in< T1 > iport1
port for the input channel 1
Definition: sy_process_constructors.hpp:310
Process constructor for a combinational process with four inputs and one output.
Definition: sy_process_constructors.hpp:307
Process constructor for a constant source process.
Definition: sy_process_constructors.hpp:1020
SY_in< T1 > iport1
port for the input channel 1
Definition: sy_process_constructors.hpp:1499
group< T > * make_group(const std::string &pName, const unsigned long &samples, OIf< std::vector< abst_ext< T >>> &outS, IIf< T > &inpS)
Helper function to construct a group process.
Definition: sy_helpers.hpp:326
Process constructor for a combinational process with an array of inputs and one output.
Definition: sy_process_constructors.hpp:408
SY_out< T > oport1
port for the output channel
Definition: sy_process_constructors.hpp:1187
Process constructor for a Mealy machine.
Definition: sy_process_constructors.hpp:761
vsource< T > * make_vsource(const std::string &pName, const std::vector< abst_ext< T >> &in_vec, OIf< T > &outS)
Helper function to construct a vector source process.
Definition: sy_helpers.hpp:412
SY_out< T > oport1
port for the output channel
Definition: sy_process_constructors.hpp:1023
comb2< T0, T1, T2 > * make_comb2(const std::string &pName, const typename comb2< T0, T1, T2 >::functype &_func, OIf< T0 > &outS, I1If< T1 > &inp1S, I2If< T2 > &inp2S)
Helper function to construct a comb2 process.
Definition: sy_helpers.hpp:70
SY_in< T > iport1
port for the input channel
Definition: sy_process_constructors.hpp:2064
std::array< SY_in< T1 >, N > iport
port for the input channel 1
Definition: sy_process_constructors.hpp:411
comb< T0, T1 > * make_comb(const std::string &pName, const typename comb< T0, T1 >::functype &_func, OIf< T0 > &outS, I1If< T1 > &inp1S)
Helper function to construct a comb process.
Definition: sy_helpers.hpp:46
std::function< void(abst_ext< OT > &, const ST &)> od_functype
Type of the output-decoding function to be passed to the process constructor.
Definition: sy_process_constructors.hpp:659
std::function< void(abst_ext< T0 > &, const abst_ext< T1 > &, const abst_ext< T2 > &, const abst_ext< T3 > &)> functype
Type of the function to be passed to the process constructor.
Definition: sy_process_constructors.hpp:224
std::function< void(abst_ext< T0 > &, const abst_ext< T1 > &, const abst_ext< T2 > &, const abst_ext< T3 > &, const abst_ext< T4 > &)> functype
Type of the function to be passed to the process constructor.
Definition: sy_process_constructors.hpp:320
SY_in< IT > iport1
port for the input channel
Definition: sy_process_constructors.hpp:764
Process constructor for a source process.
Definition: sy_process_constructors.hpp:1092
Process constructor for a combinational process with three inputs and one output. ...
Definition: sy_process_constructors.hpp:213
zip< T1, T2 > * make_zip(const std::string &pName, OIf< std::tuple< abst_ext< T1 >, abst_ext< T2 >>> &outS, I1If< T1 > &inp1S, I2If< T2 > &inp2S)
Helper function to construct a zip process.
Definition: sy_helpers.hpp:475
zipX< T1, N > * make_zipX(const std::string &pName, OIf< std::array< abst_ext< T1 >, N >> &outS)
Helper function to construct a zipX process.
Definition: sy_helpers.hpp:500
SY_in< std::tuple< abst_ext< T1 >, abst_ext< T2 > > > iport1
port for the input channel
Definition: sy_process_constructors.hpp:1715
std::function< void(abst_ext< T0 > &, const abst_ext< T1 > &)> functype
Type of the function to be passed to the process constructor.
Definition: sy_process_constructors.hpp:54
Process constructor for a sink process.
Definition: sy_process_constructors.hpp:1339
Process constructor for a fan-out process with one input and one output.
Definition: sy_process_constructors.hpp:2061
Process constructor for a source process with vector input.
Definition: sy_process_constructors.hpp:1273
Process constructor for a Moore machine.
Definition: sy_process_constructors.hpp:649
combX< T0, T1, N > * make_combX(const std::string &pName, const typename combX< T0, T1, N >::functype &_func, OIf< T0 > &outS, std::array< IIf< T1 >, N > &inpS)
Helper function to construct a combX process.
Definition: sy_helpers.hpp:157
Process constructor for a combinational process with two inputs and one output.
Definition: sy_process_constructors.hpp:127
unzip< T1, T2 > * make_unzip(const std::string &pName, IIf< std::tuple< abst_ext< T1 >, abst_ext< T2 >>> &inpS, O1If< T1 > &out1S, O2If< T2 > &out2S)
Helper function to construct an unzip process.
Definition: sy_helpers.hpp:521
std::function< void(abst_ext< T0 > &, const abst_ext< T1 > &, const abst_ext< T2 > &)> functype
Type of the function to be passed to the process constructor.
Definition: sy_process_constructors.hpp:136
comb3< T0, T1, T2, T3 > * make_comb3(const std::string &pName, const typename comb3< T0, T1, T2, T3 >::functype &_func, OIf< T0 > &outS, I1If< T1 > &inp1S, I2If< T2 > &inp2S, I3If< T3 > &inp3S)
Helper function to construct a comb3 process.
Definition: sy_helpers.hpp:97
The zip process with two inputs and one output.
Definition: sy_process_constructors.hpp:1496
The unzip process with one input and two outputs.
Definition: sy_process_constructors.hpp:1712
comb4< T0, T1, T2, T3, T4 > * make_comb4(const std::string &pName, const typename comb4< T0, T1, T2, T3, T4 >::functype &_func, OIf< T0 > &outS, I1If< T1 > &inp1S, I2If< T2 > &inp2S, I3If< T3 > &inp3S, I4If< T4 > &inp4S)
Helper function to construct a comb4 process.
Definition: sy_helpers.hpp:127
std::function< void(const abst_ext< T > &)> functype
Type of the function to be passed to the process constructor.
Definition: sy_process_constructors.hpp:1345
SY_in< std::array< abst_ext< T1 >, N > > iport1
port for the input channel
Definition: sy_process_constructors.hpp:1784
delayn< T > * make_delayn(const std::string &pName, const abst_ext< T > &initval, const unsigned int &n, OIf< T > &outS, IIf< T > &inpS)
Helper function to construct a delayn process.
Definition: sy_helpers.hpp:204
std::function< void(ST &, const ST &, const abst_ext< IT > &)> ns_functype
Type of the next-state function to be passed to the process constructor.
Definition: sy_process_constructors.hpp:769
delay< T > * make_delay(const std::string &pName, const abst_ext< T > &initval, OIf< T > &outS, IIf< T > &inpS)
Helper function to construct a delay process.
Definition: sy_helpers.hpp:181
std::function< void(abst_ext< OT > &, const ST &, const abst_ext< IT > &)> od_functype
Type of the output-decoding function to be passed to the process constructor.
Definition: sy_process_constructors.hpp:773
SY_out< std::array< abst_ext< T1 >, N > > oport1
port for the output channel
Definition: sy_process_constructors.hpp:1575
SY_in< T > iport1
port for the input channel
Definition: sy_process_constructors.hpp:573
SY_in< IT > iport1
port for the input channel
Definition: sy_process_constructors.hpp:652
hold< T > * make_hold(const std::string &pName, const T &def_val, OIf< T > &outS, IIf< T > &inpS)
Helper function to construct a hold process.
Definition: sy_helpers.hpp:303
SY_in< T1 > iport1
port for the input channel
Definition: sy_process_constructors.hpp:50
SY_in< T > iport1
port for the input channel
Definition: sy_process_constructors.hpp:497
Process constructor for a file_source process.
Definition: sy_process_constructors.hpp:1184
SY_out< T > oport1
port for the output channel
Definition: sy_process_constructors.hpp:1095
std::function< void(ST &, const ST &, const abst_ext< IT > &)> ns_functype
Type of the next-state function to be passed to the process constructor.
Definition: sy_process_constructors.hpp:656
file_source< T > * make_file_source(std::string pName, typename file_source< T >::functype _func, std::string file_name, OIf< T > &outS)
Helper function to construct a file_source process.
Definition: sy_helpers.hpp:391
Process constructor for a combinational process with one input and one output.
Definition: sy_process_constructors.hpp:47
The unzipX process with one input and an array of outputs.
Definition: sy_process_constructors.hpp:1781
SY_out< T > oport1
port for the output channel
Definition: sy_process_constructors.hpp:1276
The zipX process with an array of inputs and one output.
Definition: sy_process_constructors.hpp:1571
fanout< T > * make_fanout(const std::string &pName, OIf< T > &outS, IIf< T > &inpS)
Helper function to construct a fanout process.
Definition: sy_helpers.hpp:566
std::function< void(abst_ext< T0 > &, const std::array< abst_ext< T1 >, N > &)> functype
Type of the function to be passed to the process constructor.
Definition: sy_process_constructors.hpp:415
Generated by Doxygen 1.8.11