Hardware Reference
In-Depth Information
46
ctr <= "10";
47
if sen1='1' then
48
nx_state <= open1;
49
elsif remt='0' then
50
nx_state <= opening2;
51
else
52
nx_state <= opening1;
53
end if;
54
when opening2 =>
55
ctr <= "10";
56
if remt='1' or sen1='1' then
57
nx_state <= open1;
58
else
59
nx_state <= opening2;
60
end if;
61
when open1 =>
62
ctr <= "0-";
63
if remt='0' then
64
nx_state <= open2;
65
else
66
nx_state <= open1;
67
end if;
68
when open2 =>
69
ctr <= "0-";
70
if remt='1' then
71
nx_state <= closing1;
72
else
73
nx_state <= open2;
74
end if;
75
when closing1 =>
76
ctr <= "11";
77
if sen2='1' then
78
nx_state <= closed1;
79
elsif remt='0' then
80
nx_state <= closing2;
81
else
82
nx_state <= closing1;
83
end if;
84
when closing2 =>
85
ctr <= "11";
86
if remt='1' or sen2='1' then
87
nx_state <= closed1;
88
else
89
nx_state <= closing2;
90
end if;
91
end case;
92
end process;
93
94 end architecture;
95 ---------------------------------------------------------
The number of l ip-l ops inferred by the compiler after synthesizing the code above
was three for sequential or Gray encoding, four for Johnson, and eight for one-hot,
matching the predictions made in section 5.4.5.
Search WWH ::




Custom Search