Guest
Hi all,
Can anyone help me to design FSM circuit ?
I have no idea to design a fsm circuit!
The Function description is:
The FSM will process the input data mc_din[27:0] according to mc_op[3:0]. There are four possible operations about input data: shift, oneâs complement, twoâs complement, and ignored. The output data will be repeated or changed next is controlled by mc_op[1:0]. The FSM will generate these control signals to control the data storage flip-flops. You will need one stage pipe to store the processed input data. In the other hand, your FSM also generate full signal to your proceeding stage to hold output data if data storage is full, and generate the ready signal (mc_dout_rdy) to next stage to inform it the output data is ready until next stage acknowledging (ns_ack).
Signal Direction Description
clk input System clock
rst_n input reset signal, active low
mc_din[27:0] input input raw data
mc_op[3:0] input input operation (instruction)
mc_din_rdy input input data ready
ns_ack input The next stage acknowledgement
signal
mc_dout[27:0] output output data
mc_dout_rdy output output data ready to next stage
mc_surplus [1:0] output data transfer surplus
mc_full output current stage full signal to preceding
stage
===========================================================================operation function table
mc_op[3:2] (decide the result )
00: input data shift 1 bit right
01: do 1âs complement
10: do 2âs complement
11: ignore the input data , (no output) mc_op[1:0] function is also ignoredclk.
mc_op[1:0] (control repeat)
00: output the âinput raw dataâ 1 time
01: output the âinput raw dataâ 1 time and âresult dataâ 1 time
10: output the âinput raw dataâ 1 time and âresult dataâ 2 times
11: output the â input raw dataâ 1 time and âresult dataâ 3 times
Can anyone help me to design FSM circuit ?
I have no idea to design a fsm circuit!
The Function description is:
The FSM will process the input data mc_din[27:0] according to mc_op[3:0]. There are four possible operations about input data: shift, oneâs complement, twoâs complement, and ignored. The output data will be repeated or changed next is controlled by mc_op[1:0]. The FSM will generate these control signals to control the data storage flip-flops. You will need one stage pipe to store the processed input data. In the other hand, your FSM also generate full signal to your proceeding stage to hold output data if data storage is full, and generate the ready signal (mc_dout_rdy) to next stage to inform it the output data is ready until next stage acknowledging (ns_ack).
Signal Direction Description
clk input System clock
rst_n input reset signal, active low
mc_din[27:0] input input raw data
mc_op[3:0] input input operation (instruction)
mc_din_rdy input input data ready
ns_ack input The next stage acknowledgement
signal
mc_dout[27:0] output output data
mc_dout_rdy output output data ready to next stage
mc_surplus [1:0] output data transfer surplus
mc_full output current stage full signal to preceding
stage
===========================================================================operation function table
mc_op[3:2] (decide the result )
00: input data shift 1 bit right
01: do 1âs complement
10: do 2âs complement
11: ignore the input data , (no output) mc_op[1:0] function is also ignoredclk.
mc_op[1:0] (control repeat)
00: output the âinput raw dataâ 1 time
01: output the âinput raw dataâ 1 time and âresult dataâ 1 time
10: output the âinput raw dataâ 1 time and âresult dataâ 2 times
11: output the â input raw dataâ 1 time and âresult dataâ 3 times