esiaccel 0.1.5.dev247__cp311-cp311-win_amd64.whl → 0.1.5.dev262__cp311-cp311-win_amd64.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 esiaccel might be problematic. Click here for more details.
- esiaccel/CosimBackend.dll +0 -0
- esiaccel/ESICppRuntime.dll +0 -0
- esiaccel/ESICppRuntime.lib +0 -0
- esiaccel/EsiCosimDpiServer.dll +0 -0
- esiaccel/MtiPli.dll +0 -0
- esiaccel/abseil_dll.dll +0 -0
- esiaccel/cares.dll +0 -0
- esiaccel/cosim/questa.py +67 -4
- esiaccel/cosim/simulator.py +5 -1
- esiaccel/cosim/verilator.py +33 -18
- esiaccel/esiCppAccel.cp311-win_amd64.pyd +0 -0
- esiaccel/esiquery.exe +0 -0
- esiaccel/libcrypto-3-x64.dll +0 -0
- esiaccel/libprotobuf.dll +0 -0
- esiaccel/libssl-3-x64.dll +0 -0
- esiaccel/re2.dll +0 -0
- esiaccel/zlib1.dll +0 -0
- {esiaccel-0.1.5.dev247.dist-info → esiaccel-0.1.5.dev262.dist-info}/METADATA +1 -1
- {esiaccel-0.1.5.dev247.dist-info → esiaccel-0.1.5.dev262.dist-info}/RECORD +23 -23
- {esiaccel-0.1.5.dev247.dist-info → esiaccel-0.1.5.dev262.dist-info}/WHEEL +0 -0
- {esiaccel-0.1.5.dev247.dist-info → esiaccel-0.1.5.dev262.dist-info}/entry_points.txt +0 -0
- {esiaccel-0.1.5.dev247.dist-info → esiaccel-0.1.5.dev262.dist-info}/licenses/LICENSE +0 -0
- {esiaccel-0.1.5.dev247.dist-info → esiaccel-0.1.5.dev262.dist-info}/top_level.txt +0 -0
esiaccel/CosimBackend.dll
CHANGED
|
Binary file
|
esiaccel/ESICppRuntime.dll
CHANGED
|
Binary file
|
esiaccel/ESICppRuntime.lib
CHANGED
|
Binary file
|
esiaccel/EsiCosimDpiServer.dll
CHANGED
|
Binary file
|
esiaccel/MtiPli.dll
CHANGED
|
Binary file
|
esiaccel/abseil_dll.dll
CHANGED
|
Binary file
|
esiaccel/cares.dll
CHANGED
|
Binary file
|
esiaccel/cosim/questa.py
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
import os
|
|
6
6
|
from pathlib import Path
|
|
7
|
-
from typing import List
|
|
7
|
+
from typing import List, Optional, Callable, Dict
|
|
8
8
|
|
|
9
|
-
from .simulator import CosimCollateralDir, Simulator
|
|
9
|
+
from .simulator import CosimCollateralDir, Simulator, SourceFiles
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class Questa(Simulator):
|
|
@@ -14,6 +14,32 @@ class Questa(Simulator):
|
|
|
14
14
|
|
|
15
15
|
DefaultDriver = CosimCollateralDir / "driver.sv"
|
|
16
16
|
|
|
17
|
+
def __init__(
|
|
18
|
+
self,
|
|
19
|
+
sources: SourceFiles,
|
|
20
|
+
run_dir: Path,
|
|
21
|
+
debug: bool,
|
|
22
|
+
run_stdout_callback: Optional[Callable[[str], None]] = None,
|
|
23
|
+
run_stderr_callback: Optional[Callable[[str], None]] = None,
|
|
24
|
+
compile_stdout_callback: Optional[Callable[[str], None]] = None,
|
|
25
|
+
compile_stderr_callback: Optional[Callable[[str], None]] = None,
|
|
26
|
+
make_default_logs: bool = True,
|
|
27
|
+
macro_definitions: Optional[Dict[str, str]] = None,
|
|
28
|
+
# An optional list of questa error codes to suppress
|
|
29
|
+
suppressed_questa_errors: Optional[List[int]] = None):
|
|
30
|
+
super().__init__(
|
|
31
|
+
sources=sources,
|
|
32
|
+
run_dir=run_dir,
|
|
33
|
+
debug=debug,
|
|
34
|
+
run_stdout_callback=run_stdout_callback,
|
|
35
|
+
run_stderr_callback=run_stderr_callback,
|
|
36
|
+
compile_stdout_callback=compile_stdout_callback,
|
|
37
|
+
compile_stderr_callback=compile_stderr_callback,
|
|
38
|
+
make_default_logs=make_default_logs,
|
|
39
|
+
macro_definitions=macro_definitions,
|
|
40
|
+
)
|
|
41
|
+
self.suppressed_questa_errors = suppressed_questa_errors
|
|
42
|
+
|
|
17
43
|
# Questa doesn't use stderr for error messages. Everything goes to stdout.
|
|
18
44
|
UsesStderr = False
|
|
19
45
|
|
|
@@ -23,9 +49,27 @@ class Questa(Simulator):
|
|
|
23
49
|
]
|
|
24
50
|
sources = self.sources.rtl_sources
|
|
25
51
|
sources.append(Questa.DefaultDriver)
|
|
52
|
+
|
|
53
|
+
# Format macro definition command
|
|
54
|
+
if self.macro_definitions:
|
|
55
|
+
macro_definitions_cmd = " ".join([
|
|
56
|
+
f"+define+{k}={v}" if v is not None else f"+define+{k}"
|
|
57
|
+
for k, v in self.macro_definitions.items()
|
|
58
|
+
])
|
|
59
|
+
else:
|
|
60
|
+
macro_definitions_cmd = ""
|
|
61
|
+
|
|
62
|
+
# Format error suppression command
|
|
63
|
+
if self.suppressed_questa_errors:
|
|
64
|
+
suppressed_questa_errors_cmd = " ".join(
|
|
65
|
+
[f"-suppress {ec}" for ec in self.suppressed_questa_errors])
|
|
66
|
+
else:
|
|
67
|
+
suppressed_questa_errors_cmd = ""
|
|
68
|
+
|
|
26
69
|
for src in sources:
|
|
27
|
-
cmds.append(
|
|
28
|
-
|
|
70
|
+
cmds.append(
|
|
71
|
+
f"vlog -incr +acc -sv {macro_definitions_cmd} {suppressed_questa_errors_cmd} +define+TOP_MODULE={self.sources.top}"
|
|
72
|
+
f" +define+SIMULATION {src.as_posix()}")
|
|
29
73
|
cmds.append(f"vopt -incr driver -o driver_opt +acc")
|
|
30
74
|
return cmds
|
|
31
75
|
|
|
@@ -53,9 +97,28 @@ class Questa(Simulator):
|
|
|
53
97
|
vsim,
|
|
54
98
|
"driver_opt",
|
|
55
99
|
"-batch",
|
|
100
|
+
]
|
|
101
|
+
|
|
102
|
+
if self.debug:
|
|
103
|
+
# Create waveform dump .do file
|
|
104
|
+
wave_file = Path("wave.do")
|
|
105
|
+
with wave_file.open("w") as f:
|
|
106
|
+
f.write("log -r /*\n")
|
|
107
|
+
cmd += [
|
|
108
|
+
"-do",
|
|
109
|
+
str(wave_file.resolve()),
|
|
110
|
+
]
|
|
111
|
+
# Questa will by default log to a vsim.wlf file in the current
|
|
112
|
+
# directory.
|
|
113
|
+
print(
|
|
114
|
+
f"Debug mode enabled - waveform will be in {wave_file.resolve().parent / 'vsim.wlf'}"
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
cmd += [
|
|
56
118
|
"-do",
|
|
57
119
|
"run -all",
|
|
58
120
|
]
|
|
121
|
+
|
|
59
122
|
for lib in self.sources.dpi_so_paths():
|
|
60
123
|
svLib = os.path.splitext(lib)[0]
|
|
61
124
|
cmd.append("-sv_lib")
|
esiaccel/cosim/simulator.py
CHANGED
|
@@ -119,7 +119,8 @@ class Simulator:
|
|
|
119
119
|
run_stderr_callback: Optional[Callable[[str], None]] = None,
|
|
120
120
|
compile_stdout_callback: Optional[Callable[[str], None]] = None,
|
|
121
121
|
compile_stderr_callback: Optional[Callable[[str], None]] = None,
|
|
122
|
-
make_default_logs: bool = True
|
|
122
|
+
make_default_logs: bool = True,
|
|
123
|
+
macro_definitions: Optional[Dict[str, str]] = None):
|
|
123
124
|
"""Simulator base class.
|
|
124
125
|
|
|
125
126
|
Optional sinks can be provided for capturing output. If not provided,
|
|
@@ -135,10 +136,13 @@ class Simulator:
|
|
|
135
136
|
compile_stderr_callback: Line-based callback for compile stderr.
|
|
136
137
|
make_default_logs: If True and corresponding callback is not supplied,
|
|
137
138
|
create log file and emit via internally-created callback.
|
|
139
|
+
macro_definitions: Optional dictionary of macro definitions to be defined
|
|
140
|
+
during compilation.
|
|
138
141
|
"""
|
|
139
142
|
self.sources = sources
|
|
140
143
|
self.run_dir = run_dir
|
|
141
144
|
self.debug = debug
|
|
145
|
+
self.macro_definitions = macro_definitions
|
|
142
146
|
|
|
143
147
|
# Unified list of any log file handles we opened.
|
|
144
148
|
self._default_files: List[IO[str]] = []
|
esiaccel/cosim/verilator.py
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import os
|
|
6
6
|
from pathlib import Path
|
|
7
|
-
from typing import List, Optional, Callable
|
|
7
|
+
from typing import List, Optional, Callable, Dict
|
|
8
8
|
|
|
9
9
|
from .simulator import CosimCollateralDir, Simulator, SourceFiles
|
|
10
10
|
|
|
@@ -14,23 +14,29 @@ class Verilator(Simulator):
|
|
|
14
14
|
|
|
15
15
|
DefaultDriver = CosimCollateralDir / "driver.cpp"
|
|
16
16
|
|
|
17
|
-
def __init__(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
17
|
+
def __init__(
|
|
18
|
+
self,
|
|
19
|
+
sources: SourceFiles,
|
|
20
|
+
run_dir: Path,
|
|
21
|
+
debug: bool,
|
|
22
|
+
run_stdout_callback: Optional[Callable[[str], None]] = None,
|
|
23
|
+
run_stderr_callback: Optional[Callable[[str], None]] = None,
|
|
24
|
+
compile_stdout_callback: Optional[Callable[[str], None]] = None,
|
|
25
|
+
compile_stderr_callback: Optional[Callable[[str], None]] = None,
|
|
26
|
+
make_default_logs: bool = True,
|
|
27
|
+
macro_definitions: Optional[Dict[str, str]] = None,
|
|
28
|
+
):
|
|
29
|
+
super().__init__(
|
|
30
|
+
sources=sources,
|
|
31
|
+
run_dir=run_dir,
|
|
32
|
+
debug=debug,
|
|
33
|
+
run_stdout_callback=run_stdout_callback,
|
|
34
|
+
run_stderr_callback=run_stderr_callback,
|
|
35
|
+
compile_stdout_callback=compile_stdout_callback,
|
|
36
|
+
compile_stderr_callback=compile_stderr_callback,
|
|
37
|
+
make_default_logs=make_default_logs,
|
|
38
|
+
macro_definitions=macro_definitions,
|
|
39
|
+
)
|
|
34
40
|
self.verilator = "verilator"
|
|
35
41
|
if "VERILATOR_PATH" in os.environ:
|
|
36
42
|
self.verilator = os.environ["VERILATOR_PATH"]
|
|
@@ -39,6 +45,15 @@ class Verilator(Simulator):
|
|
|
39
45
|
cmd: List[str] = [
|
|
40
46
|
self.verilator,
|
|
41
47
|
"--cc",
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
if self.macro_definitions:
|
|
51
|
+
cmd += [
|
|
52
|
+
f"+define+{k}={v}" if v is not None else f"+define+{k}"
|
|
53
|
+
for k, v in self.macro_definitions.items()
|
|
54
|
+
]
|
|
55
|
+
|
|
56
|
+
cmd += [
|
|
42
57
|
"--top-module",
|
|
43
58
|
self.sources.top,
|
|
44
59
|
"-DSIMULATION",
|
|
Binary file
|
esiaccel/esiquery.exe
CHANGED
|
Binary file
|
esiaccel/libcrypto-3-x64.dll
CHANGED
|
Binary file
|
esiaccel/libprotobuf.dll
CHANGED
|
Binary file
|
esiaccel/libssl-3-x64.dll
CHANGED
|
Binary file
|
esiaccel/re2.dll
CHANGED
|
Binary file
|
esiaccel/zlib1.dll
CHANGED
|
Binary file
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
esiaccel/CosimBackend.dll,sha256=
|
|
1
|
+
esiaccel/CosimBackend.dll,sha256=YCDewTrBAYB5QFwKHtk3Ycv9g1J1XRVevD60dvwMmuA,7190016
|
|
2
2
|
esiaccel/CosimBackend.lib,sha256=SyCRBGdCRe98CGWnyS4no71odzAyrV48KwZwQ2oOwBo,4903888
|
|
3
|
-
esiaccel/ESICppRuntime.dll,sha256=
|
|
4
|
-
esiaccel/ESICppRuntime.lib,sha256=
|
|
5
|
-
esiaccel/EsiCosimDpiServer.dll,sha256
|
|
3
|
+
esiaccel/ESICppRuntime.dll,sha256=8wHH1cVDK0p3JdRXZFI6iBkVeqjkayf_UoSrE8PDXqM,4099072
|
|
4
|
+
esiaccel/ESICppRuntime.lib,sha256=STOfSJGRyNmvbmcgrStHtVZVWbcP_S-7z9ZdOJbrBhg,15212020
|
|
5
|
+
esiaccel/EsiCosimDpiServer.dll,sha256=-acww_k02OoIVpr2PSh-Cea1UkP60n4Zr3tvuQDrLbc,159744
|
|
6
6
|
esiaccel/EsiCosimDpiServer.lib,sha256=zn3bIX10e2HQtwZOi1xpqeNfy4AdZm8Jx634HVTVQ8w,604164
|
|
7
|
-
esiaccel/MtiPli.dll,sha256=
|
|
7
|
+
esiaccel/MtiPli.dll,sha256=wslCCael39_QplEOR4cYNP6NH5Zhf62FvGCdOufj6uM,14848
|
|
8
8
|
esiaccel/MtiPli.lib,sha256=juJ2Asmv6cnozNPpXvGeKkieYFcXK8MOYmDQZz-dAy4,14570
|
|
9
9
|
esiaccel/__init__.py,sha256=65xXWHwJwRePsyhWk837NpzuN0qsNhoAX29TOiSYKGc,905
|
|
10
|
-
esiaccel/abseil_dll.dll,sha256=
|
|
10
|
+
esiaccel/abseil_dll.dll,sha256=LPG4blNoMIglgbTDJX4Y10pS6vG7hOhSf0lvRIVZHTk,1584640
|
|
11
11
|
esiaccel/accelerator.py,sha256=BcXPsUqcQV3YsVVyYbz9P6JnZLlcnuageFbJwID9_3s,3318
|
|
12
|
-
esiaccel/cares.dll,sha256=
|
|
12
|
+
esiaccel/cares.dll,sha256=fXvFmzNBa9TaEAD0Y4b_meytJozelU6TXo_deesanIA,199168
|
|
13
13
|
esiaccel/codegen.py,sha256=uoYELtnIabVvgLeCABj-mWras0BvmSKABPH-cd9nDFk,6560
|
|
14
14
|
esiaccel/esi-cosim.py,sha256=P7n3SBgKPnXynwghY5zK1FmpqZkbC_YxfVIvNNQNl6Q,3817
|
|
15
|
-
esiaccel/esiCppAccel.cp311-win_amd64.pyd,sha256=
|
|
16
|
-
esiaccel/esiquery.exe,sha256=
|
|
17
|
-
esiaccel/libcrypto-3-x64.dll,sha256=
|
|
18
|
-
esiaccel/libprotobuf.dll,sha256=
|
|
19
|
-
esiaccel/libssl-3-x64.dll,sha256=
|
|
20
|
-
esiaccel/re2.dll,sha256=
|
|
15
|
+
esiaccel/esiCppAccel.cp311-win_amd64.pyd,sha256=6ZGKHXk_I8tuRQ3OtEYshAX8SuXddWxFPZBbMmMlL7Q,502272
|
|
16
|
+
esiaccel/esiquery.exe,sha256=3aKiEdu3yp6i3kJfOTkIDv_pTnsoUYsbSMJH30YZ5rk,441856
|
|
17
|
+
esiaccel/libcrypto-3-x64.dll,sha256=OXPcV2mifKUEXNes7IMn_vIfqYd7sm6mNEgdfXLyTHg,5266944
|
|
18
|
+
esiaccel/libprotobuf.dll,sha256=RA95S2-DcV2mnSdIBG7lUL26obi5myxYvxYI_W7oeFI,12566528
|
|
19
|
+
esiaccel/libssl-3-x64.dll,sha256=YewpTnl8qQ3wBgDCRQx-Xwhn1LzOm63FPdExktYFGEA,867328
|
|
20
|
+
esiaccel/re2.dll,sha256=QTsMnOSOz5vf-QdxIXZHpf9m_AG8mCGNXEVAo_oCCwo,1213952
|
|
21
21
|
esiaccel/types.py,sha256=LFLzUCvtYF6FLsmKet6eJTMq2ija2Z5kxd5Ks6tkS4U,19044
|
|
22
22
|
esiaccel/utils.py,sha256=q-8fmgJ9tUvmBsIvqZiZ7u845IJhOjvjYTQLhhrNYl0,1515
|
|
23
|
-
esiaccel/zlib1.dll,sha256=
|
|
23
|
+
esiaccel/zlib1.dll,sha256=bzmCNjgAYeeRJ8CKMgH6cjSOcoP2hBiENIH8mc75woE,90112
|
|
24
24
|
esiaccel/cmake/esiaccelConfig.cmake,sha256=u2aW99k1lEcmYTG1P3BTJqtmDrj53wUUaBz_jzw8kYY,565
|
|
25
25
|
esiaccel/cosim/Cosim_DpiPkg.sv,sha256=9qGn1VyAVrzBP5At1thV6xrovg0WghICD01Zz9J221E,3458
|
|
26
26
|
esiaccel/cosim/Cosim_Endpoint.sv,sha256=-XXrGvvk6hdiZ-Ex6_QtdKXXUwKJLKSvpTUK3o0gPZ8,7589
|
|
27
27
|
esiaccel/cosim/Cosim_Manifest.sv,sha256=vl9b6XieEkP880IBw1ferekBnDJwFanZZggJJGertXM,1123
|
|
28
28
|
esiaccel/cosim/driver.cpp,sha256=Lvmo03pzzhoswdxAtdXAm-oU6UkfTyl1LgoCpyDzLhY,3842
|
|
29
29
|
esiaccel/cosim/driver.sv,sha256=LAkFEXTwX3KKwZLSzYZFwMPWxZwVStuhUsfecHHpGzU,1890
|
|
30
|
-
esiaccel/cosim/questa.py,sha256=
|
|
31
|
-
esiaccel/cosim/simulator.py,sha256=
|
|
32
|
-
esiaccel/cosim/verilator.py,sha256=
|
|
30
|
+
esiaccel/cosim/questa.py,sha256=2xALwRzsOFZ1_xk3f2d849GMvGspNCK4XL8zVDBjXlA,4626
|
|
31
|
+
esiaccel/cosim/simulator.py,sha256=HpkvKPbpyqalRp8poRYU3E0taYxTRmxcmBEJ7YOecx4,13941
|
|
32
|
+
esiaccel/cosim/verilator.py,sha256=dwiEkKOem5OKPV9AK6O1ohr22MTsyDxBVnriDRFoVa8,2877
|
|
33
33
|
esiaccel/include/esi/Accelerator.h,sha256=RhkZ2HeMZ0iHc5BkHdDWXoeg9J9lyPQciH5bWq5Qc_w,9772
|
|
34
34
|
esiaccel/include/esi/CLI.h,sha256=Nn8tHn_xtEfkrD7USE2tao6ktYOJ6xcbnhZkS9-ox0A,2540
|
|
35
35
|
esiaccel/include/esi/Common.h,sha256=IGJvAU72dlearXFbSmlXFFriy8aomirp7opEBjgewek,5775
|
|
@@ -45,9 +45,9 @@ esiaccel/include/esi/Utils.h,sha256=KPd75GajIFeTBVJocXBjwsJqhbZg-ShWZCIe3oQdBss,
|
|
|
45
45
|
esiaccel/include/esi/backends/Cosim.h,sha256=s7vYd0ra6m1nvk-n37MjvBoGVI-CCUKBt0DU4PKlaHM,2838
|
|
46
46
|
esiaccel/include/esi/backends/RpcServer.h,sha256=WMwnhwU2qnrcglGNeiKg9QQHpkDx1QE1JydKYDK4jqE,1856
|
|
47
47
|
esiaccel/include/esi/backends/Trace.h,sha256=kx4wwLH3a0ndmRUdaDyYGZ1SP83zlpFrk30Nw8ZrJJA,3286
|
|
48
|
-
esiaccel-0.1.5.
|
|
49
|
-
esiaccel-0.1.5.
|
|
50
|
-
esiaccel-0.1.5.
|
|
51
|
-
esiaccel-0.1.5.
|
|
52
|
-
esiaccel-0.1.5.
|
|
53
|
-
esiaccel-0.1.5.
|
|
48
|
+
esiaccel-0.1.5.dev262.dist-info/licenses/LICENSE,sha256=vtnVnB8_lN1yPYcA5MeT56R8UsQtBhyzZLBvu_KMf7I,13468
|
|
49
|
+
esiaccel-0.1.5.dev262.dist-info/METADATA,sha256=HJVA86FXO5sdnXMAHQ6J4LTjSZlZygMz0pJiuyxqwKk,16148
|
|
50
|
+
esiaccel-0.1.5.dev262.dist-info/WHEEL,sha256=JLOMsP7F5qtkAkINx5UnzbFguf8CqZeraV8o04b0I8I,101
|
|
51
|
+
esiaccel-0.1.5.dev262.dist-info/entry_points.txt,sha256=_CuNLV0fyTURxRREFwpzGycifZW_-7-MyuJNEwKK9J8,137
|
|
52
|
+
esiaccel-0.1.5.dev262.dist-info/top_level.txt,sha256=fYWTWMDK4PDu4ePQ9NtcFHas2k8-d1kWhTs2avPpgB4,9
|
|
53
|
+
esiaccel-0.1.5.dev262.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|