Skip to content

Commit

Permalink
Added 7408, 7432, and and 7486 chips
Browse files Browse the repository at this point in the history
  • Loading branch information
gaz20004 committed Oct 15, 2024
1 parent 25c9477 commit 85968c3
Showing 1 changed file with 52 additions and 1 deletion.
53 changes: 52 additions & 1 deletion SDPPython/chips.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,55 @@
ic_7400.set_pin(12, "input")
ic_7400.set_pin(13, "input")
ic_7400.set_pin(14, "VCC")
ic_7400.set_truth_table([1,1,1,0])
ic_7400.set_truth_table([1,1,1,0])

ic_7408 = IC74Series(chip_number="08", logic_type="AND",n = 2,description="Quad 2-input AND gate")
ic_7408.set_pin(1, "input")
ic_7408.set_pin(2, "input")
ic_7408.set_pin(3, "output")
ic_7408.set_pin(4, "input")
ic_7408.set_pin(5, "input")
ic_7408.set_pin(6, "output")
ic_7408.set_pin(7, "ground")
ic_7408.set_pin(8, "output")
ic_7408.set_pin(9, "input")
ic_7408.set_pin(10, "input")
ic_7408.set_pin(11, "output")
ic_7408.set_pin(12, "input")
ic_7408.set_pin(13, "input")
ic_7408.set_pin(14, "VCC")
ic_7408.set_truth_table([0,0,0,1])

ic_7432 = IC74Series(chip_number="32", logic_type="OR",n = 2,description="Quad 2-input OR gate")
ic_7432.set_pin(1, "input")
ic_7432.set_pin(2, "input")
ic_7432.set_pin(3, "output")
ic_7432.set_pin(4, "input")
ic_7432.set_pin(5, "input")
ic_7432.set_pin(6, "output")
ic_7432.set_pin(7, "ground")
ic_7432.set_pin(8, "output")
ic_7432.set_pin(9, "input")
ic_7432.set_pin(10, "input")
ic_7432.set_pin(11, "output")
ic_7432.set_pin(12, "input")
ic_7432.set_pin(13, "input")
ic_7432.set_pin(14, "VCC")
ic_7432.set_truth_table([0,1,1,1])

ic_7486 = IC74Series(chip_number="86", logic_type="XOR",n = 2,description="Quad 2-input XOR gate")
ic_7486.set_pin(1, "input")
ic_7486.set_pin(2, "input")
ic_7486.set_pin(3, "output")
ic_7486.set_pin(4, "input")
ic_7486.set_pin(5, "input")
ic_7486.set_pin(6, "output")
ic_7486.set_pin(7, "ground")
ic_7486.set_pin(8, "output")
ic_7486.set_pin(9, "input")
ic_7486.set_pin(10, "input")
ic_7486.set_pin(11, "output")
ic_7486.set_pin(12, "input")
ic_7486.set_pin(13, "input")
ic_7486.set_pin(14, "VCC")
ic_7486.set_truth_table([0,1,1,0])

0 comments on commit 85968c3

Please sign in to comment.