Docsity

Combinational Logic Analysis - Hierarchical Modeling, Exercises of Computer science

Partial preview of the text

Download Combinational Logic Analysis - Hierarchical Modeling and more Exercises Computer science in PDF only on Docsity!

Lebanese American University

Department of Computer Science & Mathematics

Computer Organization Lab

CSC 322-Section 15

Lab Report 4

Instructor: Lara Issa

COMBINATIONAL LOGIC ANALYSIS -

HIERARCHICAL MODELING

Antonio Karam

ID: 202303075

Yara Issa

ID: 202302819

Submitted on 04/22/

COMBINATIONAL LOGIC ANALYSIS -

HIERARCHICAL MODELING

Theoretical Introduction:

๏‚ท Truth tables and Equations:

W1= ๐‘Žฬ…. ฬ… ๐‘ฬ… = ๐‘Žฬ… + b W2= a^.^ w^^1 = a^ + a^.^ b = a + a^.^ b = a +b W3= b^.^ w^^1 = b^ + a^.^ b = a^.^ b^ + b^ =a+ b W4= w^ 2.^ w^^3 = w^^2 + w^^3 = a + b^ + a +^ b^ = (๐‘Žฬฟ. ๐‘ฬ…) + (๐‘Žฬ…. b )= ๐‘Ž๐‘ฬ… + ๐‘๐‘Žฬ… = ๐‘Ž โŠ• ๐‘ W5= c^.^ w^^4 = c^ + a^ โŠ•^ b x=c.w5+w4.w5=w5(c+w4) y= w^^5_._^ w^^1 W1 Truth Table: a b ๐‘Ž ฬ… b^ ๐‘Žฬ… + b T T F F F T F F T T F T T F T F F T T T W2 Truth Table: a b (^) ๐‘Ž ฬ… ๐‘Žฬ… +b T T F T T F F F F T T T F F T T W3 Truth Table:

y Truth Table: w 5 w (^1) w (^5) + w 1 F T T T F T F F F F F F

  • Circuit Diagram: I. Design Phase: โžข Code: module kabs(a,b,w1,x); input a,b,w1; output x; wire w2,w3; nand (w2,a,w1); nand (w3,b,w1); nand (x,w2,w3); endmodule module extraReportGroup8(a,b,c,x,y); input a,b,c; output x,y; wire w1,w2,w3,w4,w5,w6,w7; nand(w1,a,b); kabs k1 (a,b,w1,w4); nand(w5,c,w4); nand(y,w5,w1); kabs k2 (c,w4,w5,x); endmodule

โžข After assigning the values in the pin planner, we will have this: The results were checked on the hardware and were proven correct. Exercise: