You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the specification, the machine should go to an error state when requesting multiple sandwiches at the same time. However, such constraint is violated when a coin is inserted along with requesting two sandwiches, as seen in the attached picture.
Possible solution: rearrange the following code to test error cases before accepting a coin.
if m100 = '1' then pe <= soma; elsif dev = '1' or (r_bacon = '1' and r_atum = '1') or (r_bacon = '1' and r_green = '1') or (r_atum = '1' and r_green = '1') then pe <= nulo; ...
When it could be...
if dev = '1' or (r_bacon = '1' and r_atum = '1') or (r_bacon = '1' and r_green = '1') or (r_atum = '1' and r_green = '1') then pe <= nulo; elsif m100 = '1' then pe <= soma; ...
The text was updated successfully, but these errors were encountered:
Machine V4:
According to the specification, the machine should go to an error state when requesting multiple sandwiches at the same time. However, such constraint is violated when a coin is inserted along with requesting two sandwiches, as seen in the attached picture.
Possible solution: rearrange the following code to test error cases before accepting a coin.
if m100 = '1' then
pe <= soma;
elsif dev = '1' or (r_bacon = '1' and r_atum = '1') or (r_bacon = '1' and r_green = '1') or (r_atum = '1' and r_green = '1') then
pe <= nulo;
...
When it could be...
if dev = '1' or (r_bacon = '1' and r_atum = '1') or (r_bacon = '1' and r_green = '1') or (r_atum = '1' and r_green = '1') then
pe <= nulo;
elsif m100 = '1' then
pe <= soma;
...
The text was updated successfully, but these errors were encountered: