E
Elinore
Guest
Hi
In the FSM example below, sensitity list is supposed to be (clk,
reset).
What if (clk, reset, input) ?
How is differently synthesized, for example, in Xilinx FPGA synthesis
tool, XST?
process(clk,reset)
begin
if (reset='1') then
state <= S1;
output <= '1';
elsif(clk='1' and clk'event) then
case state is
when s1 =>
if input ='1' then --- FSM input
state <= s2;
output <= '1';
else
state <= s3;
output <= '0';
when s2 => state <= s4; output <= '0';
end case;
end if;
end process
In the FSM example below, sensitity list is supposed to be (clk,
reset).
What if (clk, reset, input) ?
How is differently synthesized, for example, in Xilinx FPGA synthesis
tool, XST?
process(clk,reset)
begin
if (reset='1') then
state <= S1;
output <= '1';
elsif(clk='1' and clk'event) then
case state is
when s1 =>
if input ='1' then --- FSM input
state <= s2;
output <= '1';
else
state <= s3;
output <= '0';
when s2 => state <= s4; output <= '0';
end case;
end if;
end process