Difference between revisions of "CSC270 Homework 5 Solution 2012"
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
--[[User:Thiebaut|D. Thiebaut]] 18:24, 12 March 2012 (EDT) | --[[User:Thiebaut|D. Thiebaut]] 18:24, 12 March 2012 (EDT) | ||
---- | ---- | ||
− | < | + | <onlydft> |
=PDF= | =PDF= | ||
[[Media:CSC270Homework5Solutions2012.pdf|Pdf]] | [[Media:CSC270Homework5Solutions2012.pdf|Pdf]] | ||
=Source= | =Source= | ||
+ | |||
+ | For problem #2, since we associated Red ON with the state where Q0, Q1, and Q2 are 0, then all we need to do is clear D2, D1, and D0 when the command is 1. So we AND the functions of Problem 1 that generate D2, D1, and D0 with NOT( cmd ). No analysis necessary! | ||
<source lang="python"> | <source lang="python"> | ||
Line 142: | Line 144: | ||
"""</sourcr> | """</sourcr> | ||
− | </ | + | </onlydft> |
<br /> | <br /> |