Question: Q 2 . A . Complete the behavioral VHDL code to implement the FSM described in the ASM chart illustrated in the figure below. What

Q2.A. Complete the behavioral VHDL code to implement the FSM described in the ASM chart illustrated in
the figure below. What is the type of the FSM is it a Mealy or Moore?
(6Marks)
elst clk' event and clk=?'1' then
state = nextstate;
end if;
end process;
next state logic
Process (state, a) begin
case state is
when SO => if a='1' then
nextstate = S1;
else nextstate = SO;
end if;
when S1=> if a='1' then
pextstate = S2;
else pextstate = SO;
end if;
when S2=> if a='1' then
nextstate = S2;
else nextstate = S3;
end if;
library ieee;
use ieee.std logic 1164.a11;
entity fsm is
port (clk, resetn: in std logic;
s,b,z : in std logic;
done, r, q: out std_logic);
end fsm;
architecture behavioral of fsm is
type state is (S1, s2, s3);
signal y: state;
begin
Transitions: process (resetn, clk, s, b, z)
begin
if resetn ='0' then ys1;
elsif
 Q2.A. Complete the behavioral VHDL code to implement the FSM described

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!