Skip to content

Commit fb833d9

Browse files
committed
correction bug 112
1 parent 44b9e25 commit fb833d9

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

menus.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -764,13 +764,15 @@ def decodeFunc(self,inVar, funcName):
764764
CLK = f"{inVar[1]["clk"]} "
765765
else: CLK = f"!{inVar[3]["iclk"]} "
766766
if inVar[3].get("iset"):
767-
iSet = f"{inVar[3]["iset"]}"
768-
iRst = f"{inVar[2]["irst"]}"
767+
set = f"!{inVar[3]["iset"]}"
768+
iset = f"{inVar[3]["iset"]}"
769+
rst = f"!{inVar[2]["irst"]}"
769770
else:
770-
iSet = f"!{inVar[2]["iset"]}"
771-
iRst = f"{inVar[1]["irst"]}"
771+
set = f"!{inVar[2]["iset"]}"
772+
iset = f"{inVar[2]["iset"]}"
773+
rst = f"!{inVar[1]["irst"]}"
772774
sT =f"T{self.varTempNum} = "
773-
sT += "((" + inVar[0]['J'] + f" & T{self.varTempNum}_precedant) | (!{K} & t{self.varTempNum}_precedant)) & !{iSet} & !{iRst} & CLK | !{iSet} "
775+
sT += "((" + inVar[0]['J'] + f" & !T{self.varTempNum}_precedant) | (!{K} & T{self.varTempNum}_precedant)) & {set} & {rst} & CLK | {iset} "
774776
sT += " ); "
775777
s = inVar[0]["numO"]*" !" + f"T{self.varTempNum} "
776778
self.varTempNum +=1
@@ -1320,7 +1322,7 @@ def checkCircuit(self):
13201322
elif id[:4] == "_io_": # [(col1, line1,col2,line2), ...]
13211323
(col, line) = component["coord"][0][0], component["coord"][0][1]
13221324
ioZone = deepcopy(self.board.sketcher.matrix[f"{col},{line}"]["link"])
1323-
if component["type"] == INPUT:
1325+
if component["type"] == INPUT or component["type"] == CLOCK:
13241326
self.io_in += [(id, [ioZone])]
13251327
else:
13261328
self.io_out += [(id, [ioZone])]

sidebar.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
from dataCDLT import FREE, USED
1818
from object_model.circuit_object_model import Chip, get_all_available_chips, get_chip_modification_times
1919

20-
if os.name == "posix" or os.name=="darwin":
21-
from tkinter import messagebox, font
22-
from tkmacosx import Button # type: ignore
23-
else:
24-
from tkinter import Button, messagebox, font
20+
# if os.name == "posix" or os.name=="darwin":
21+
# from tkinter import messagebox, font
22+
# from tkmacosx import Button # type: ignore
23+
# else:
24+
from tkinter import Button, messagebox, font
2525

2626

2727
@dataclass

0 commit comments

Comments
 (0)