digsim-logic-simulator 0.10.0__py3-none-any.whl → 0.12.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of digsim-logic-simulator might be problematic. Click here for more details.
- digsim/app/gui_objects/_buzzer_object.py +1 -6
- digsim/app/model/_model_settings.py +1 -1
- digsim/synth/_synthesis.py +22 -0
- {digsim_logic_simulator-0.10.0.dist-info → digsim_logic_simulator-0.12.0.dist-info}/METADATA +1 -1
- {digsim_logic_simulator-0.10.0.dist-info → digsim_logic_simulator-0.12.0.dist-info}/RECORD +8 -8
- {digsim_logic_simulator-0.10.0.dist-info → digsim_logic_simulator-0.12.0.dist-info}/WHEEL +0 -0
- {digsim_logic_simulator-0.10.0.dist-info → digsim_logic_simulator-0.12.0.dist-info}/licenses/LICENSE.md +0 -0
- {digsim_logic_simulator-0.10.0.dist-info → digsim_logic_simulator-0.12.0.dist-info}/top_level.txt +0 -0
|
@@ -66,12 +66,7 @@ class BuzzerObject(ImageObjectWithActiveRect):
|
|
|
66
66
|
self.audio_sink = None
|
|
67
67
|
self._app_model.sig_audio_start.connect(self._audio_start)
|
|
68
68
|
self._app_model.sig_audio_notify.connect(self._audio_notify)
|
|
69
|
-
self.device =
|
|
70
|
-
devices = QMediaDevices.audioOutputs()
|
|
71
|
-
if len(devices) == 0:
|
|
72
|
-
return
|
|
73
|
-
self.device = devices[0]
|
|
74
|
-
|
|
69
|
+
self.device = QMediaDevices.defaultAudioOutput()
|
|
75
70
|
self.audio_format = QAudioFormat()
|
|
76
71
|
self.audio_format.setSampleRate(self.DATA_SAMPLE_RATE_HZ)
|
|
77
72
|
self.audio_format.setChannelCount(1)
|
|
@@ -27,7 +27,7 @@ class ModelSettings:
|
|
|
27
27
|
|
|
28
28
|
def from_dict(self, circuit_dict):
|
|
29
29
|
"""Get settings from circuit dict"""
|
|
30
|
-
for key, data in circuit_dict.
|
|
30
|
+
for key, data in circuit_dict.items():
|
|
31
31
|
self._settings[key] = data
|
|
32
32
|
|
|
33
33
|
def get(self, key):
|
digsim/synth/_synthesis.py
CHANGED
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
"""Helper module for yosys synthesis"""
|
|
5
5
|
|
|
6
6
|
import json
|
|
7
|
+
import pathlib
|
|
7
8
|
import shutil
|
|
9
|
+
import site
|
|
8
10
|
import sys
|
|
9
11
|
|
|
10
12
|
import pexpect
|
|
@@ -43,10 +45,30 @@ class Synthesis:
|
|
|
43
45
|
out_lines.append(line)
|
|
44
46
|
return out_lines
|
|
45
47
|
|
|
48
|
+
@staticmethod
|
|
49
|
+
def _find_win_yowasp_yosys_binary():
|
|
50
|
+
try:
|
|
51
|
+
# Use getusersitepackages if this is present, as it ensures that the
|
|
52
|
+
# value is initialised properly.
|
|
53
|
+
user_site = site.getusersitepackages()
|
|
54
|
+
except AttributeError:
|
|
55
|
+
user_site = site.USER_SITE
|
|
56
|
+
scripts_path = pathlib.Path(user_site).parent / "Scripts"
|
|
57
|
+
yowasp_yosys_path = scripts_path / "yowasp-yosys.exe"
|
|
58
|
+
if yowasp_yosys_path.is_file():
|
|
59
|
+
return str(yowasp_yosys_path)
|
|
60
|
+
return None
|
|
61
|
+
|
|
46
62
|
@classmethod
|
|
47
63
|
def _pexpect_spawn_yosys(cls):
|
|
64
|
+
# Find linux binary
|
|
48
65
|
yosys_exe = shutil.which("yosys") or shutil.which("yowasp-yosys")
|
|
49
66
|
|
|
67
|
+
# No binary found
|
|
68
|
+
if yosys_exe is None:
|
|
69
|
+
# Try to find windows binary
|
|
70
|
+
yosys_exe = cls._find_win_yowasp_yosys_binary()
|
|
71
|
+
|
|
50
72
|
if yosys_exe is None:
|
|
51
73
|
raise SynthesisException("Yosys executable not found")
|
|
52
74
|
|
|
@@ -9,7 +9,7 @@ digsim/app/gui/_utils.py,sha256=SSbe4B-trgZpaerPZilAaZYeqMOlFZMuufTth8KyOAg,660
|
|
|
9
9
|
digsim/app/gui/_warning_dialog.py,sha256=N9G2wyQTyiqMnTtbExMzHgdbCBA0epfhNWY4GVF6xH8,1496
|
|
10
10
|
digsim/app/gui_objects/__init__.py,sha256=DV7hnqz4Xcwk_-BiKrPxB31c7k-R4Oemmo_KOUjoQrQ,264
|
|
11
11
|
digsim/app/gui_objects/_bus_bit_object.py,sha256=Q8oW-bAGLRAvR2-8PxyHL4M68FLKFgNpDiL4E7BPUOQ,3059
|
|
12
|
-
digsim/app/gui_objects/_buzzer_object.py,sha256=
|
|
12
|
+
digsim/app/gui_objects/_buzzer_object.py,sha256=wD0nJ-0f6lj9jREPM0rH2HyncpIXJrr9oHgq33oHyO8,3252
|
|
13
13
|
digsim/app/gui_objects/_component_context_menu.py,sha256=57M23M8Xb4t8eN8l9GQQ4AUBYZlEBjE0_a4d71yCDos,2821
|
|
14
14
|
digsim/app/gui_objects/_component_object.py,sha256=zktprBWHR81LS2UPrQTyebzXIDQV_xIFavGQe0nCtDg,13144
|
|
15
15
|
digsim/app/gui_objects/_component_port_item.py,sha256=Rxl952_3BCqM2H7TJDfbSTlalfFicDStrjqMUKEtdns,2089
|
|
@@ -53,7 +53,7 @@ digsim/app/model/_model.py,sha256=JE9-iJMxzgcY0r-4s708gDtA-aadw_hFSuERjKNZlfE,64
|
|
|
53
53
|
digsim/app/model/_model_components.py,sha256=Q2iztl7MlWv_7vaa7me-dp-gOx6-7Tg3LZmTUQNBPrw,6371
|
|
54
54
|
digsim/app/model/_model_new_wire.py,sha256=5HnF5-gtKtB1Tp6ZIF7QuNo5zEHmsUpnBEmj6ZllLiA,1810
|
|
55
55
|
digsim/app/model/_model_objects.py,sha256=lqOjNIygIHT6Dq_PPa-D0B5elC49dB0KshF0ATzJZ0s,5217
|
|
56
|
-
digsim/app/model/_model_settings.py,sha256=
|
|
56
|
+
digsim/app/model/_model_settings.py,sha256=BOwlwGT4h2R9tx7R5E1L4W0vli4GWh4RM77QBoqeKdw,1015
|
|
57
57
|
digsim/app/model/_model_shortcuts.py,sha256=xrUgs2Y18mSVun3sxzVscYTZ6n5DJTTZOnFhs4Jt_0M,2439
|
|
58
58
|
digsim/app/settings/__init__.py,sha256=0tkoBSYeJFFiUI8c_FqvqqyM4-_SU9Xq7mXCwiew5Oo,308
|
|
59
59
|
digsim/app/settings/_component_settings.py,sha256=88D9OuEcFIlaqZozomWHSYrl7opz4jZW2e8xGuUyTpg,16287
|
|
@@ -95,11 +95,11 @@ digsim/storage_model/_app.py,sha256=Aer9s_mUBKSydsyeWYvVPHX2XF5ZGPuXq8z4PoXu8lA,
|
|
|
95
95
|
digsim/storage_model/_circuit.py,sha256=NnaHLwqb9gAhqAxeZ1RkHHvoS_YJwixlz0xs-zmIrQU,3596
|
|
96
96
|
digsim/synth/__init__.py,sha256=jhBHLOHf-vNa94Zg5q5dGcf0fgQTModfjUKtmUSffiw,180
|
|
97
97
|
digsim/synth/__main__.py,sha256=wZWAzWsisoxA7hfqkKtu3H066uWyFajgPro2MEGlKbs,2173
|
|
98
|
-
digsim/synth/_synthesis.py,sha256=
|
|
98
|
+
digsim/synth/_synthesis.py,sha256=n49Yc2Wzb49mZQt_WSpoJy2eUfSBnzv1hTxcOP60L74,5034
|
|
99
99
|
digsim/utils/__init__.py,sha256=MT9TNcpa7fNAqtBsmCcceKMrUSU_v9xeJ6Nox_TL7Lo,191
|
|
100
100
|
digsim/utils/_yosys_netlist.py,sha256=Lcuo9seKcDu4O-NdBpJUpExvTT7Rx1STCBtF0xT8Nkc,3843
|
|
101
|
-
digsim_logic_simulator-0.
|
|
102
|
-
digsim_logic_simulator-0.
|
|
103
|
-
digsim_logic_simulator-0.
|
|
104
|
-
digsim_logic_simulator-0.
|
|
105
|
-
digsim_logic_simulator-0.
|
|
101
|
+
digsim_logic_simulator-0.12.0.dist-info/licenses/LICENSE.md,sha256=FrvohZfyfpH4xrvKdXiQ5hD7dUB7w4DcsRA3p-pOmLw,1693
|
|
102
|
+
digsim_logic_simulator-0.12.0.dist-info/METADATA,sha256=JHxzVc7fjDmDB6q2d1oHCjiJLhTN3yih1G8c5ZxIw_I,4558
|
|
103
|
+
digsim_logic_simulator-0.12.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
104
|
+
digsim_logic_simulator-0.12.0.dist-info/top_level.txt,sha256=qpCMzQKADZHVqZIoQgFrv3qJ3u7PPU73gTCXQglqLa8,7
|
|
105
|
+
digsim_logic_simulator-0.12.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{digsim_logic_simulator-0.10.0.dist-info → digsim_logic_simulator-0.12.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|