\documentclass[letter,12pt]{article}
\usepackage{graphicx}
\usepackage{hyperref}
\textwidth=14.9cm
\voffset -2.5cm
\hoffset -1.2cm
\textheight=24cm
\topmargin 2cm

%\pagestyle{empty}
\pagenumbering{arabic}
\begin{document}

\noindent
\textbf{\Large CSE140 HW1, Due Mon. 4/15/2019 by 11:59PM}
\date{}

\section{Introduction}
The purpose of this assignment is three-fold. First, it aims to help you practice the application of Boolean algebra theorems to transform and reduce Boolean expressions. The second goal is to help you learn how to go from the world of Boolean expressions to the world of digital circuits. The final goal is to help you translate a problem described in words to a Boolean algebraic expression. We hope you can think of why each of these exercises is useful when designing digital circuits.

\section{Application of Boolean Algebra Theorems}

\subsection{Prove the theorems using Boolean algebra:} 

\noindent
A. Prove that $A+1=1$. 

\noindent
B. Prove that $A \cdot 0= 0$. 

\subsection{Prove the following equations using Boolean algebra:} 

\noindent
%A. $bd+acd'+abc= bd+acd'$
%A. ad + bc'd'+abc'= ad + bc'd' 
A. $a'b + a'cd'+b'cd'= a'b + b'cd'$. 

\noindent
%B. $(b+d)(a+c+d')(a+b+c)= (b+d)(a+c+d')$
%B. (a+d)(b+c'+d')(a+b+c')=(a+d)(b+c'+d')
B. $(a'+b)(a'+c+d'+e)(b'+c+d')= (a'+b)(b'+c+d')$. 

Are the above equations related to the consensus theorem?

\subsection{Prove the above two equations using Shannon's expansion.} 

\noindent
\section{From Problem to Boolean Expression}

\noindent
A circuit has four inputs and one output. The inputs $(a_3, a_2,a_1,a_0)$
represent a number from 0 to 15. Output $Y$ is true if the number is prime
(0 and 1 are not prime, but 2, 3, 5 and so on are prime).

\noindent
A. Describe the truth table.

\noindent
B. Write the function in sum-of-products canonical form.

\noindent
C. Write the function in product-of-sums canonical form.

\section{Boolean Algebra and Implementation }


\noindent
A. Simplify each of the following two Boolean equations (using Boolean algebra, in particular consensus theorm). 

\noindent
B. Sketch a reasonably simple combinational circuit implementing the simplified equation.

\noindent
C. List the numbers of literals and operators versus the numbers of gates, nets,
and pins in the schematic diagrams

\noindent
i. $y(a,b,c,d)= ac'd'+ab'cd'+a'bcd'+bd+a'bc'd+abc$

\noindent
ii. $(b'+ac)(a'c'+b)(ab+c)'$

\section{Assignment Turn-in}
Once you're finished with the assignment, turn it in as a pdf on
{\it Gradescope}. 

\end{document}

