102 sc_out<double> speed;
103 sc_out<double> angle;
106 sc_signal<int> elapsed_time;
107 sc_signal<double> filtered_speed;
110 speed_read_mod *read_mod;
111 speed_pwm_mod *pwm_mod;
114 void find_time_proc();
119 sensitive << clk.pos();
121 read_mod =
new speed_read_mod(
"read_mod");
122 pwm_mod =
new speed_pwm_mod(
"pwm_mod");
129 read_mod->start(start);
130 read_mod->pulse(pulse);
131 read_mod->filtered_speed(filtered_speed);
132 read_mod->elapsed_time(elapsed_time);
141 pwm_mod->start(start);
142 pwm_mod->filtered_speed(filtered_speed);
143 pwm_mod->speed(speed);
144 pwm_mod->angle(angle);
149 filtered_speed = 0.0;