subject
Engineering, 14.12.2019 08:31 Yasminl52899

Write behavioral vhdl code that implements the state machine that you designed in the previous module. use a case statement to represent the state table as illustrated in the figure below. use two processes – one for the combinational logic and one for the state register. add an asynchronous reset input.

1 entity sm17_2 is

2 port(x, clk: in bit;

3 z: out bit);

4 end sm17_2;

5 architecture table of sm17_2 is

6 signal state, nextstate: integer range 0 to 6: = 0;

7 begin

8 process(state, x) --combinational cicuit

9 begin

10 case state is

11 when 0=>

12 if x='0' then z< ='1'; nextstate< =1;

13 else z< ='0'; nextstate< =2; end if;

14 when 1=>

15 if x='0' then z< ='1'; nextstate< =3

16 else z< ='0'; nextstate< =4; end if;

17 when 2=>

18 if x='0' then z< ='0'; nextstate< =4

19 else z< ='1'; nextstate< =4; end if;

20 when 3=>

21 if x='0' then z< ='0'; nextstate< =5

22 else z< ='1'; nextstate< =5; end if;

23 when 4=>

24 if x='0' then z< ='1'; nextstate< =5

25 else z< ='0'; nextstate< =6; end if;

26 when 5=>

27 if x='0' then z< ='0'; nextstate< =0

28 else z< ='1'; nextstate< =0; end if;

29 when 6=>

30 z< ='1'; nextstate< =0;

31 end case;

32 end process;

33 process (clk) --state register

34 begin

35 if clk'event and clk='1' then --rising edge of clock

36 state< =nextstate;

37 end if;

38 end process;

39 end table;

2. simulate the vhdl code and verify that it works correctly. use the same test sequences that you used in your assignment in the previous module.

3. synthesize the vhdl code and download it to the basys 3 hardware board for testing. use the vivado software for synthesizing the code and programming the fpga.

4. verify the correct operation of the hardware implementation of the state machine using the same procedures as in the previous module. submit your vhdl code in this activity.

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Water at 55c flows across a flat plate whose surface temperature is held constant at 95c. if the temperature gradient at the plate's surface for a given value of x is 18 c/mm, find a) local heat transfer coefficient. b) heat flux
Answers: 3
question
Engineering, 04.07.2019 18:20
A3-mm-thick panel of aluminum alloy (k 177 w/m-k, c 875 j/kg-k and ? = 2770 kg/m) is finished on both sides with an epoxy coating that must be cured at or above t,-150°c for at least 5 min. the production line for the curing operation involves two steps: (1) heating in a large oven with air at ts,0-175°c and a convection coefficient of h, 40 w/m2. k, and (2) cooling in a large chamber with air at 25°c and a con- vection coefficient of he 10 w/m2.k. the heating portion of the process is conducted over a time interval te which exceeds the ime required to reach 150°c by 5 min (h = r + 300 s). the coating has an emissivity of ? = 0.8, and the temperatures of the oven and chamber walls are 175 and 25°c, respectively. if the panel is placed in the oven at an initial temperature of 25°c and removed from the chamber at a safe-to-touch tempera ture of 37°c, what is the total elapsed time for the two-step curing operation?
Answers: 3
question
Engineering, 04.07.2019 18:20
Air flows over a heated plate àt a velocity of 50m/s. the local skin factor coefficient at a point on a plate is 0.004. estimate the local heat transfer coefficient at this point.the following property data for air are given: density = 0.88kg/m3 , viscosity 2.286 x 10 ^-5 kgm/s , k = 0.035w/mk ,cp = 1.001kj/kgk. use colburn reynolds analogy.
Answers: 1
question
Engineering, 04.07.2019 19:10
Ahelical coil spring has a mean diameter of 50 mm, a wire diameter of 5.5 mm and is wound with a pitch of 10 mm. the spring steel has an ultimate strength of 1250 mpa. find the force needed to compress the spring solid and the wire stress in this condition. state whether the spring will return to its initial length.
Answers: 1
You know the right answer?
Write behavioral vhdl code that implements the state machine that you designed in the previous modul...
Questions
question
Mathematics, 25.11.2019 01:31