1- (BCD Counter) The following FSM models a BCD 0-to-9 counter.

Write an HLS code to describe this counter. The top-function prototype is as follows.
void bcd_counter(ap_uint<4> &count);
2- A sequential circuit accepts a binary input and generates a binary output, denoted by x and y, respectively—the following FSM model its behaviour. Write an HLS code to represent this FSM.

3- Describe the following FSM in HLS.
