Background


Previous page | Content | Next page | Home

Adjustment for the perimeter of the tyre

The design calls for a means of adjusting for the perimeter of the tyre where this value is used, since the type of the tyre depends on the bicycle.

Figure 39: Block diagram of the component CounterPerimeter

The component consists of an upwards counter with a vector width of 7 bits and a state machine monitoring the input CntUp_In. Each pulse of CntUp_In generates a pulse on ClkCountUp in order to increase the counter and generate the signal Mode for the BCD conversion process.
The counter output CounterValue provides values from 0 to 128, increased by 80. The resultant vector Perimeter_cm thus has a width of 8 bits and permits adjustment of the values between 80 cm and 208 cm.
Figure 40 shows the state machine CounterPerimeter_StateMachine.

Figure 40: State diagram of CounterPerimeter_StateMachine

Upwards counter

The upwards counter has a width determined by generic parameter N. The design structure is similar to that of DownCounter_Nbit.

Figure 41: Input and output ports of the component UpCounter


Previous page | Content | Next page | Home