Skip to content

Commit

Permalink
input and output gates now must do something and connect to the outsi…
Browse files Browse the repository at this point in the history
…de world
  • Loading branch information
gonsie committed Oct 30, 2015
1 parent ba04364 commit 4a5f9b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ply_liberty.py
Expand Up @@ -103,11 +103,13 @@ def p_library(t):

def additional_types():
gi = classes.Gate_Type("input_gate")
gi.add('pin', {"out" : {'direction' : "output"}})
gi.add('pin', {"in" : {'direction' : "input"})})
gi.add('pin', {"out" : {'direction' : "output", 'function' : "in"}})
gi.setOrders()
gate_types[gi.name] = gi
go = classes.Gate_Type("output_gate")
go.add('pin', {"in": {'direction' : "input"}})
go.add('pin', {"out" : {'direction' : "output", 'function' : "in"}})
go.setOrders()
gate_types[go.name] = go
gw = classes.Gate_Type("fanout")
Expand Down

0 comments on commit 4a5f9b9

Please sign in to comment.