bitseqtest_sim.cpp
上传用户:jtjnyq9001
上传日期:2014-11-21
资源大小:3974k
文件大小:1k
- //
- // File = bitseqtest_sim.cpp
- //
- #define SIM_NAME "BitSeqTest "
- #define SIM_TITLE "Bit Sequence Testbed "
- #include "global_stuff.h"
- #include "bitgen.h"
- #include "bit_analyzer.h"
- #include "siganchr.h"
- main()
- {
- #include "sim_preamble.cpp"
- //=========================================================================
- // Misc special processing
- //=========================================================================
- // Allocate signals
- BIT_SIGNAL(bit_seq);
- //============================================================
- // Construct, initialize and connect models
- BitGener* bit_gen = new BitGener( "bit_gen ",
- CommSystem,
- bit_seq );
-
- SignalAnchor* bit_seq_anchr = new SignalAnchor( "bit_seq_anchr ",
- CommSystem,
- bit_seq );
- BitSeqAnalyzer* bit_anlyzr = new BitSeqAnalyzer( "bit_anlyzr ",
- CommSystem,
- bit_seq );
- //=============================================================
- #include "sim_postamble.cpp"
- return 0;
- }