esiaccel 0.1.2.dev15__cp38-cp38-win_amd64.whl → 0.1.3__cp38-cp38-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/CosimBackend.lib +0 -0
- esiaccel/ESICppRuntime.dll +0 -0
- esiaccel/ESICppRuntime.lib +0 -0
- esiaccel/bin/esi-cosim.py +28 -10
- esiaccel/bin/esiquery.exe +0 -0
- esiaccel/esiCppAccel.cp38-win_amd64.pyd +0 -0
- esiaccel/include/esi/Common.h +11 -0
- esiaccel/include/esi/Services.h +4 -2
- esiaccel/lib/EsiCosimDpiServer.dll +0 -0
- esiaccel/lib/EsiCosimDpiServer.lib +0 -0
- esiaccel/lib/MtiPli.dll +0 -0
- esiaccel/lib/MtiPli.lib +0 -0
- esiaccel/zlib1.dll +0 -0
- {esiaccel-0.1.2.dev15.dist-info → esiaccel-0.1.3.dist-info}/METADATA +1 -1
- {esiaccel-0.1.2.dev15.dist-info → esiaccel-0.1.3.dist-info}/RECORD +20 -20
- {esiaccel-0.1.2.dev15.dist-info → esiaccel-0.1.3.dist-info}/LICENSE +0 -0
- {esiaccel-0.1.2.dev15.dist-info → esiaccel-0.1.3.dist-info}/WHEEL +0 -0
- {esiaccel-0.1.2.dev15.dist-info → esiaccel-0.1.3.dist-info}/entry_points.txt +0 -0
- {esiaccel-0.1.2.dev15.dist-info → esiaccel-0.1.3.dist-info}/top_level.txt +0 -0
esiaccel/CosimBackend.dll
CHANGED
|
Binary file
|
esiaccel/CosimBackend.lib
CHANGED
|
Binary file
|
esiaccel/ESICppRuntime.dll
CHANGED
|
Binary file
|
esiaccel/ESICppRuntime.lib
CHANGED
|
Binary file
|
esiaccel/bin/esi-cosim.py
CHANGED
|
@@ -135,7 +135,10 @@ class Simulator:
|
|
|
135
135
|
"""Return the command to run the simulation."""
|
|
136
136
|
assert False, "Must be implemented by subclass"
|
|
137
137
|
|
|
138
|
-
def run(self,
|
|
138
|
+
def run(self,
|
|
139
|
+
inner_command: str,
|
|
140
|
+
gui: bool = False,
|
|
141
|
+
server_only: bool = False) -> int:
|
|
139
142
|
"""Start the simulation then run the command specified. Kill the simulation
|
|
140
143
|
when the command exits."""
|
|
141
144
|
|
|
@@ -197,12 +200,19 @@ class Simulator:
|
|
|
197
200
|
raise Exception("Simulation exited early")
|
|
198
201
|
time.sleep(0.05)
|
|
199
202
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
203
|
+
if server_only:
|
|
204
|
+
# wait for user input to kill the server
|
|
205
|
+
input(
|
|
206
|
+
f"Running in server-only mode on port {port} - Press anything to kill the server..."
|
|
207
|
+
)
|
|
208
|
+
return 0
|
|
209
|
+
else:
|
|
210
|
+
# Run the inner command, passing the connection info via environment vars.
|
|
211
|
+
testEnv = os.environ.copy()
|
|
212
|
+
testEnv["ESI_COSIM_PORT"] = str(port)
|
|
213
|
+
testEnv["ESI_COSIM_HOST"] = "localhost"
|
|
214
|
+
return subprocess.run(inner_command, cwd=os.getcwd(),
|
|
215
|
+
env=testEnv).returncode
|
|
206
216
|
finally:
|
|
207
217
|
# Make sure to stop the simulation no matter what.
|
|
208
218
|
if simProc:
|
|
@@ -317,7 +327,10 @@ class Questa(Simulator):
|
|
|
317
327
|
cmd.append(svLib)
|
|
318
328
|
return cmd
|
|
319
329
|
|
|
320
|
-
def run(self,
|
|
330
|
+
def run(self,
|
|
331
|
+
inner_command: str,
|
|
332
|
+
gui: bool = False,
|
|
333
|
+
server_only: bool = False) -> int:
|
|
321
334
|
"""Override the Simulator.run() to add a soft link in the run directory (to
|
|
322
335
|
the work directory) before running vsim the usual way."""
|
|
323
336
|
|
|
@@ -327,7 +340,7 @@ class Questa(Simulator):
|
|
|
327
340
|
os.symlink(Path(os.getcwd()) / "work", workDir)
|
|
328
341
|
|
|
329
342
|
# Run the simulation.
|
|
330
|
-
return super().run(inner_command, gui)
|
|
343
|
+
return super().run(inner_command, gui, server_only=server_only)
|
|
331
344
|
|
|
332
345
|
|
|
333
346
|
def __main__(args):
|
|
@@ -375,6 +388,11 @@ def __main__(args):
|
|
|
375
388
|
nargs=argparse.REMAINDER,
|
|
376
389
|
help="Command to run in the simulation environment.")
|
|
377
390
|
|
|
391
|
+
argparser.add_argument(
|
|
392
|
+
"--server-only",
|
|
393
|
+
action="store_true",
|
|
394
|
+
help="Only run the cosim server, and do not run any inner command.")
|
|
395
|
+
|
|
378
396
|
if len(args) <= 1:
|
|
379
397
|
argparser.print_help()
|
|
380
398
|
return
|
|
@@ -398,7 +416,7 @@ def __main__(args):
|
|
|
398
416
|
rc = sim.compile()
|
|
399
417
|
if rc != 0:
|
|
400
418
|
return rc
|
|
401
|
-
return sim.run(args.inner_cmd[1:], gui=args.gui)
|
|
419
|
+
return sim.run(args.inner_cmd[1:], gui=args.gui, server_only=args.server_only)
|
|
402
420
|
|
|
403
421
|
|
|
404
422
|
if __name__ == '__main__':
|
esiaccel/bin/esiquery.exe
CHANGED
|
Binary file
|
|
Binary file
|
esiaccel/include/esi/Common.h
CHANGED
|
@@ -105,13 +105,24 @@ public:
|
|
|
105
105
|
/// Adopts the data vector buffer.
|
|
106
106
|
MessageData() = default;
|
|
107
107
|
MessageData(std::vector<uint8_t> &data) : data(std::move(data)) {}
|
|
108
|
+
MessageData(std::vector<uint8_t> &&data) : data(std::move(data)) {}
|
|
108
109
|
MessageData(const uint8_t *data, size_t size) : data(data, data + size) {}
|
|
109
110
|
~MessageData() = default;
|
|
110
111
|
|
|
111
112
|
const uint8_t *getBytes() const { return data.data(); }
|
|
113
|
+
|
|
114
|
+
/// Get the data as a vector of bytes.
|
|
115
|
+
const std::vector<uint8_t> &getData() const { return data; }
|
|
116
|
+
|
|
117
|
+
/// Move the data out of this object.
|
|
118
|
+
std::vector<uint8_t> takeData() { return std::move(data); }
|
|
119
|
+
|
|
112
120
|
/// Get the size of the data in bytes.
|
|
113
121
|
size_t getSize() const { return data.size(); }
|
|
114
122
|
|
|
123
|
+
/// Returns true if this message contains no data.
|
|
124
|
+
bool empty() const { return data.empty(); }
|
|
125
|
+
|
|
115
126
|
/// Cast to a type. Throws if the size of the data does not match the size of
|
|
116
127
|
/// the message. The lifetime of the resulting pointer is tied to the lifetime
|
|
117
128
|
/// of this object.
|
esiaccel/include/esi/Services.h
CHANGED
|
@@ -284,6 +284,7 @@ public:
|
|
|
284
284
|
std::mutex callMutex;
|
|
285
285
|
WriteChannelPort *arg;
|
|
286
286
|
ReadChannelPort *result;
|
|
287
|
+
bool connected = false;
|
|
287
288
|
};
|
|
288
289
|
|
|
289
290
|
private:
|
|
@@ -307,8 +308,9 @@ public:
|
|
|
307
308
|
PortMap channels);
|
|
308
309
|
|
|
309
310
|
public:
|
|
310
|
-
static Callback *get(AcceleratorConnection &acc, AppID id,
|
|
311
|
-
WriteChannelPort &result,
|
|
311
|
+
static Callback *get(AcceleratorConnection &acc, AppID id,
|
|
312
|
+
const BundleType *type, WriteChannelPort &result,
|
|
313
|
+
ReadChannelPort &arg);
|
|
312
314
|
|
|
313
315
|
/// Connect a callback to code which will be executed when the accelerator
|
|
314
316
|
/// invokes the callback. The 'quick' flag indicates that the callback is
|
|
Binary file
|
|
Binary file
|
esiaccel/lib/MtiPli.dll
CHANGED
|
Binary file
|
esiaccel/lib/MtiPli.lib
CHANGED
|
Binary file
|
esiaccel/zlib1.dll
CHANGED
|
Binary file
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
esiaccel/CosimBackend.dll,sha256=
|
|
2
|
-
esiaccel/CosimBackend.lib,sha256=
|
|
3
|
-
esiaccel/ESICppRuntime.dll,sha256=
|
|
4
|
-
esiaccel/ESICppRuntime.lib,sha256=
|
|
1
|
+
esiaccel/CosimBackend.dll,sha256=IJWvxPMd06E4ZpPigH3fYjMX8gcgIyNBBuvmugkKy-0,7150592
|
|
2
|
+
esiaccel/CosimBackend.lib,sha256=2qSqISOnyefgUZQPnUoDyDzkpcQVnCf-fjyqLb6aINI,4991546
|
|
3
|
+
esiaccel/ESICppRuntime.dll,sha256=K6RRXXkX-DXkVwxZ2_lAzn6yY2yUgxpNIbTpXC0EO8I,3682304
|
|
4
|
+
esiaccel/ESICppRuntime.lib,sha256=0IylTM7GptXB8Uhwuk4sISzwTnpKfncShSswrVRWgHE,14489550
|
|
5
5
|
esiaccel/__init__.py,sha256=C0GLqCQuF5g5qTzmAkf_YAHmBV2XAyiJad3Qz7h8u1g,562
|
|
6
6
|
esiaccel/accelerator.py,sha256=GM2FRZF_8nzAJ_7TSRSw_kaJCYWCHMK-cQD8ZZU8QVs,3071
|
|
7
7
|
esiaccel/codegen.py,sha256=uoYELtnIabVvgLeCABj-mWras0BvmSKABPH-cd9nDFk,6560
|
|
8
|
-
esiaccel/esiCppAccel.cp38-win_amd64.pyd,sha256=
|
|
8
|
+
esiaccel/esiCppAccel.cp38-win_amd64.pyd,sha256=FSDjWHsw_zz8i6n0HmbXciBcgg2aDGGrB0t2ofHF2NQ,449024
|
|
9
9
|
esiaccel/types.py,sha256=gfUgrX67KYFruX5xsj_wLNJCdwczzLpseyH71M86pW0,17047
|
|
10
10
|
esiaccel/utils.py,sha256=nzar3WALJC_RfmM5v0GeUev5So1-EAYuAMxG9jLj3eQ,1062
|
|
11
|
-
esiaccel/zlib1.dll,sha256=
|
|
12
|
-
esiaccel/bin/esi-cosim.py,sha256=
|
|
13
|
-
esiaccel/bin/esiquery.exe,sha256=
|
|
11
|
+
esiaccel/zlib1.dll,sha256=GMIWELkSl68cF_4Hv0o5iiAGyiOABmRqDR8uGxOz0DE,90112
|
|
12
|
+
esiaccel/bin/esi-cosim.py,sha256=GwYfNh4aagypheAhGf0EIX6ojkLYKkc5OMlFR9pfXe8,14381
|
|
13
|
+
esiaccel/bin/esiquery.exe,sha256=gYXy_jb38fOiH9aQ1MjoI4Vtsyt7ibRf2Q-05OYY4SA,441856
|
|
14
14
|
esiaccel/cmake/esiaccelConfig.cmake,sha256=u2aW99k1lEcmYTG1P3BTJqtmDrj53wUUaBz_jzw8kYY,565
|
|
15
15
|
esiaccel/cosim/Cosim_DpiPkg.sv,sha256=9qGn1VyAVrzBP5At1thV6xrovg0WghICD01Zz9J221E,3458
|
|
16
16
|
esiaccel/cosim/Cosim_Endpoint.sv,sha256=ri1fHdkiphe8S2-vm6Ru16rBGYiDiS1c8qeCAsl1diU,6498
|
|
@@ -19,26 +19,26 @@ esiaccel/cosim/driver.cpp,sha256=DrEKkSN7Y_Hu7wcaUulH5mbC2L4yB9xLClRMeRUpzHM,384
|
|
|
19
19
|
esiaccel/cosim/driver.sv,sha256=ro-j9GM164A1W0MDPkqYfEn3TUKHSqVvgjO31fnloQI,1428
|
|
20
20
|
esiaccel/include/esi/Accelerator.h,sha256=RhkZ2HeMZ0iHc5BkHdDWXoeg9J9lyPQciH5bWq5Qc_w,9772
|
|
21
21
|
esiaccel/include/esi/CLI.h,sha256=Nn8tHn_xtEfkrD7USE2tao6ktYOJ6xcbnhZkS9-ox0A,2540
|
|
22
|
-
esiaccel/include/esi/Common.h,sha256=
|
|
22
|
+
esiaccel/include/esi/Common.h,sha256=PKoDU2y2q5zwfeyjW5jfHqRiP6NGPOF3Wn3aOHdmWvM,5468
|
|
23
23
|
esiaccel/include/esi/Context.h,sha256=Tk_4nBDtTeVY62GfX4Cs_ZMIQstjSgrWHddN_PKANEA,2396
|
|
24
24
|
esiaccel/include/esi/Design.h,sha256=mU8OwpCYijiWSdDq17l45LMzZxBca93nosudWCXNHfQ,4922
|
|
25
25
|
esiaccel/include/esi/Engines.h,sha256=bbGbhXjYMpIpXh_DR0OS57zyGQUIDXh_S7xHX3su0Y0,4831
|
|
26
26
|
esiaccel/include/esi/Logging.h,sha256=sHqMcpp0lNIHkIEyvSm-BBWx4zXXh6NOATCgZpgzYI4,8944
|
|
27
27
|
esiaccel/include/esi/Manifest.h,sha256=j3v9UA0ogtJQBlv6k5s4j_3sCsq-gwF9btVg5dKTBlg,2244
|
|
28
28
|
esiaccel/include/esi/Ports.h,sha256=T2WbPBViUSvFbO5Jjxlcp_eGq9jMitguvNnz3O0564U,10543
|
|
29
|
-
esiaccel/include/esi/Services.h,sha256=
|
|
29
|
+
esiaccel/include/esi/Services.h,sha256=THgEbqNOuUIo1nonFFVsy_7H58GvPKP0Yw6i-ySPWBA,14782
|
|
30
30
|
esiaccel/include/esi/Types.h,sha256=P4ExO8-zvm7qQocUmkM_ATIvamxtDZ8JT2ToLkFo1dk,5483
|
|
31
31
|
esiaccel/include/esi/Utils.h,sha256=KPd75GajIFeTBVJocXBjwsJqhbZg-ShWZCIe3oQdBss,3061
|
|
32
32
|
esiaccel/include/esi/backends/Cosim.h,sha256=s7vYd0ra6m1nvk-n37MjvBoGVI-CCUKBt0DU4PKlaHM,2838
|
|
33
33
|
esiaccel/include/esi/backends/RpcServer.h,sha256=WMwnhwU2qnrcglGNeiKg9QQHpkDx1QE1JydKYDK4jqE,1856
|
|
34
34
|
esiaccel/include/esi/backends/Trace.h,sha256=kx4wwLH3a0ndmRUdaDyYGZ1SP83zlpFrk30Nw8ZrJJA,3286
|
|
35
|
-
esiaccel/lib/EsiCosimDpiServer.dll,sha256=
|
|
36
|
-
esiaccel/lib/EsiCosimDpiServer.lib,sha256=
|
|
37
|
-
esiaccel/lib/MtiPli.dll,sha256=
|
|
38
|
-
esiaccel/lib/MtiPli.lib,sha256=
|
|
39
|
-
esiaccel-0.1.
|
|
40
|
-
esiaccel-0.1.
|
|
41
|
-
esiaccel-0.1.
|
|
42
|
-
esiaccel-0.1.
|
|
43
|
-
esiaccel-0.1.
|
|
44
|
-
esiaccel-0.1.
|
|
35
|
+
esiaccel/lib/EsiCosimDpiServer.dll,sha256=GEDh0hZjwv1G-bjnWzp1v419RsEA-8YdScAvE2uIK4k,159744
|
|
36
|
+
esiaccel/lib/EsiCosimDpiServer.lib,sha256=eFEv_EO7-u7vxUTbURwj0d5rwHNoncITR9P2qJAE1Vk,604164
|
|
37
|
+
esiaccel/lib/MtiPli.dll,sha256=aRI7pBOnO_BQLXiX2EDDqD36-mNNsTwcBuQKT-EFCUo,14848
|
|
38
|
+
esiaccel/lib/MtiPli.lib,sha256=0vBNn5m9C3ulbl8UJ83c0tuxZAKVrB6_B1bQmBE5jc0,14570
|
|
39
|
+
esiaccel-0.1.3.dist-info/LICENSE,sha256=vtnVnB8_lN1yPYcA5MeT56R8UsQtBhyzZLBvu_KMf7I,13468
|
|
40
|
+
esiaccel-0.1.3.dist-info/METADATA,sha256=VE7_B_b1q6p_9dMQlDoYq3-zl9MhMI-DTou9MMEXAhc,16120
|
|
41
|
+
esiaccel-0.1.3.dist-info/WHEEL,sha256=2M046GvC9RLU1f1TWyM-2sB7cRKLhAC7ucAFK8l8f24,99
|
|
42
|
+
esiaccel-0.1.3.dist-info/entry_points.txt,sha256=_CuNLV0fyTURxRREFwpzGycifZW_-7-MyuJNEwKK9J8,137
|
|
43
|
+
esiaccel-0.1.3.dist-info/top_level.txt,sha256=fYWTWMDK4PDu4ePQ9NtcFHas2k8-d1kWhTs2avPpgB4,9
|
|
44
|
+
esiaccel-0.1.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|