Implement the following FSMD using the 1-process model. //…
Implement the following FSMD using the 1-process model. // inputs: go, n// outputs: result, done// Done should be asserted indefinitely, but cleared one cycle after go is asserted.// Don’t reset anything except the state registerdone = 0;while(1) { while (go == 0); // Initialize state done = 0; // Initialize registers (n_r = n should happen when go is asserted) n_r = n; i_r = 0; sum_r = 0; while (i_r