esiaccel 0.1.5.dev147__cp38-cp38-win_amd64.whl → 0.1.5.dev163__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/ESICppRuntime.dll +0 -0
- esiaccel/EsiCosimDpiServer.dll +0 -0
- esiaccel/MtiPli.dll +0 -0
- esiaccel/cosim/Cosim_Endpoint.sv +62 -15
- esiaccel/esi-cosim.py +4 -1
- esiaccel/esiCppAccel.cp38-win_amd64.pyd +0 -0
- esiaccel/esiquery.exe +0 -0
- {esiaccel-0.1.5.dev147.dist-info → esiaccel-0.1.5.dev163.dist-info}/METADATA +1 -1
- {esiaccel-0.1.5.dev147.dist-info → esiaccel-0.1.5.dev163.dist-info}/RECORD +14 -14
- {esiaccel-0.1.5.dev147.dist-info → esiaccel-0.1.5.dev163.dist-info}/LICENSE +0 -0
- {esiaccel-0.1.5.dev147.dist-info → esiaccel-0.1.5.dev163.dist-info}/WHEEL +0 -0
- {esiaccel-0.1.5.dev147.dist-info → esiaccel-0.1.5.dev163.dist-info}/entry_points.txt +0 -0
- {esiaccel-0.1.5.dev147.dist-info → esiaccel-0.1.5.dev163.dist-info}/top_level.txt +0 -0
esiaccel/CosimBackend.dll
CHANGED
|
Binary file
|
esiaccel/ESICppRuntime.dll
CHANGED
|
Binary file
|
esiaccel/EsiCosimDpiServer.dll
CHANGED
|
Binary file
|
esiaccel/MtiPli.dll
CHANGED
|
Binary file
|
esiaccel/cosim/Cosim_Endpoint.sv
CHANGED
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
// Package: Cosim_DpiPkg
|
|
10
10
|
//
|
|
11
11
|
// Main cosim <--> dpi bridge module.
|
|
12
|
+
|
|
13
|
+
|
|
12
14
|
//
|
|
13
15
|
//===----------------------------------------------------------------------===//
|
|
14
16
|
|
|
@@ -118,9 +120,8 @@ module Cosim_Endpoint_FromHost
|
|
|
118
120
|
$error("Cosim endpoint (%s) register failed: %d", ENDPOINT_ID, rc);
|
|
119
121
|
end
|
|
120
122
|
|
|
121
|
-
///
|
|
122
|
-
///
|
|
123
|
-
///
|
|
123
|
+
/// ***********************
|
|
124
|
+
/// Useful constants.
|
|
124
125
|
|
|
125
126
|
localparam int FROM_HOST_SIZE_BYTES = int'((FROM_HOST_SIZE_BITS+7)/8);
|
|
126
127
|
// The number of bits over a byte.
|
|
@@ -129,13 +130,30 @@ module Cosim_Endpoint_FromHost
|
|
|
129
130
|
localparam int FROM_HOST_SIZE_BYTES_FLOOR_IN_BITS
|
|
130
131
|
= FROM_HOST_SIZE_BYTES_FLOOR * 8;
|
|
131
132
|
|
|
133
|
+
// Buffer to hold incoming data directly from the DPI calls.
|
|
132
134
|
byte unsigned DataOutBuffer[FROM_HOST_SIZE_BYTES-1:0];
|
|
135
|
+
|
|
136
|
+
// Pipeline interface signals for buffering DataOut.
|
|
137
|
+
// DataOut_a_valid is asserted when a complete message is available in
|
|
138
|
+
// DataOut_a buffer and waiting to be accepted by the skid buffer.
|
|
139
|
+
logic DataOut_a_valid;
|
|
140
|
+
// Packed representation of the byte buffer to feed the skid input.
|
|
141
|
+
logic [FROM_HOST_SIZE_BITS-1:0] DataOut_a;
|
|
142
|
+
// Ready/valid wires between this module and the skid buffer.
|
|
143
|
+
wire DataOut_a_ready;
|
|
144
|
+
wire DataOut_x_valid;
|
|
145
|
+
wire [FROM_HOST_SIZE_BITS-1:0] DataOut_x;
|
|
146
|
+
|
|
133
147
|
always @(posedge clk) begin
|
|
134
148
|
if (~rst) begin
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
149
|
+
// If the skid buffer accepted the input token this cycle, clear the
|
|
150
|
+
// internal valid that indicates we have buffered data.
|
|
151
|
+
if (DataOut_a_valid && DataOut_a_ready)
|
|
152
|
+
DataOut_a_valid <= 1'b0;
|
|
153
|
+
|
|
154
|
+
// Only attempt to fetch data from the host when the skid buffer can
|
|
155
|
+
// accept it (DataOut_a_ready).
|
|
156
|
+
if (!DataOut_a_valid && DataOut_a_ready) begin
|
|
139
157
|
int data_limit;
|
|
140
158
|
int rc;
|
|
141
159
|
|
|
@@ -149,7 +167,7 @@ module Cosim_Endpoint_FromHost
|
|
|
149
167
|
ENDPOINT_ID, FROM_HOST_SIZE_BYTES, data_limit, rc);
|
|
150
168
|
end else if (rc == 0) begin
|
|
151
169
|
if (data_limit == FROM_HOST_SIZE_BYTES)
|
|
152
|
-
|
|
170
|
+
DataOut_a_valid <= 1'b1;
|
|
153
171
|
else if (data_limit == 0)
|
|
154
172
|
begin end // No message.
|
|
155
173
|
else
|
|
@@ -159,24 +177,53 @@ module Cosim_Endpoint_FromHost
|
|
|
159
177
|
end
|
|
160
178
|
end
|
|
161
179
|
end else begin
|
|
162
|
-
|
|
180
|
+
DataOut_a_valid <= 1'b0;
|
|
163
181
|
end
|
|
164
182
|
end
|
|
165
183
|
|
|
166
|
-
//
|
|
184
|
+
// Pack the byte array into a single vector that will be handed to the
|
|
185
|
+
// skid buffer as its input payload.
|
|
167
186
|
genvar iOut;
|
|
168
187
|
generate
|
|
169
188
|
for (iOut=0; iOut<FROM_HOST_SIZE_BYTES_FLOOR; iOut++)
|
|
170
|
-
assign
|
|
189
|
+
assign DataOut_a[((iOut+1)*8)-1:iOut*8] = DataOutBuffer[iOut];
|
|
171
190
|
if (FROM_HOST_SIZE_BITS_DIFF != 0)
|
|
172
|
-
// If the type is not a multiple of 8,
|
|
173
|
-
assign
|
|
174
|
-
|
|
175
|
-
|
|
191
|
+
// If the type is not a multiple of 8, copy the extra bits.
|
|
192
|
+
assign DataOut_a[(FROM_HOST_SIZE_BYTES_FLOOR_IN_BITS +
|
|
193
|
+
FROM_HOST_SIZE_BITS_DIFF - 1) :
|
|
194
|
+
FROM_HOST_SIZE_BYTES_FLOOR_IN_BITS]
|
|
176
195
|
= DataOutBuffer[FROM_HOST_SIZE_BYTES - 1]
|
|
177
196
|
[FROM_HOST_SIZE_BITS_DIFF - 1 : 0];
|
|
178
197
|
endgenerate
|
|
179
198
|
|
|
199
|
+
/// *******************
|
|
200
|
+
/// Data out management.
|
|
201
|
+
///
|
|
202
|
+
/// It has been observed that some simulators (verilator) does not handle
|
|
203
|
+
/// combinational driving from DPI well (resulting in non-determinism wrt
|
|
204
|
+
/// some of the combinational outputs being dropped/replicated). Questa does
|
|
205
|
+
/// not show this behavior.
|
|
206
|
+
/// A mitigation is to add a skid buffer to decouple the DPI interface
|
|
207
|
+
/// from the output interface.
|
|
208
|
+
|
|
209
|
+
// Instantiate a single-stage pipeline to buffer tokens that arrive from
|
|
210
|
+
// the host and present them to the module's output with proper
|
|
211
|
+
// ready/valid handshaking.
|
|
212
|
+
ESI_PipelineStage #(.WIDTH(FROM_HOST_SIZE_BITS)) out_pipe (
|
|
213
|
+
.clk(clk),
|
|
214
|
+
.rst(rst),
|
|
215
|
+
.a_valid(DataOut_a_valid),
|
|
216
|
+
.a(DataOut_a),
|
|
217
|
+
.a_ready(DataOut_a_ready),
|
|
218
|
+
.x_valid(DataOut_x_valid),
|
|
219
|
+
.x(DataOut_x),
|
|
220
|
+
.x_ready(DataOutReady)
|
|
221
|
+
);
|
|
222
|
+
|
|
223
|
+
// Drive the module's outward-facing signals from the pipeline output.
|
|
224
|
+
assign DataOutValid = DataOut_x_valid;
|
|
225
|
+
assign DataOut = DataOut_x;
|
|
226
|
+
|
|
180
227
|
initial begin
|
|
181
228
|
$display("FROM_HOST_SIZE_BITS: %d", FROM_HOST_SIZE_BITS);
|
|
182
229
|
$display("FROM_HOST_SIZE_BYTES: %d", FROM_HOST_SIZE_BYTES);
|
esiaccel/esi-cosim.py
CHANGED
|
Binary file
|
esiaccel/esiquery.exe
CHANGED
|
Binary file
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
esiaccel/CosimBackend.dll,sha256=
|
|
1
|
+
esiaccel/CosimBackend.dll,sha256=H57k35A1JH9Fv0XGuQlh6Sfg-869Krmf9fE1ch3s1a4,7152128
|
|
2
2
|
esiaccel/CosimBackend.lib,sha256=UjflmgR93Kl22Du0lTqGhXWQqWEF-V8VwcqUuFo8GNk,4992924
|
|
3
|
-
esiaccel/ESICppRuntime.dll,sha256=
|
|
3
|
+
esiaccel/ESICppRuntime.dll,sha256=xMTcV2_-jBVmICESh-b3ffIJdgYAq-eCp2z7r_ELNhQ,4078592
|
|
4
4
|
esiaccel/ESICppRuntime.lib,sha256=iGJtktQywYhQCody90jvprSYC7kB9LWt3LEX5yIGEkM,15154004
|
|
5
|
-
esiaccel/EsiCosimDpiServer.dll,sha256=
|
|
5
|
+
esiaccel/EsiCosimDpiServer.dll,sha256=ZK3iGjibrmg5DliG8piJrscxoodt637DD1vHr15nKu0,159744
|
|
6
6
|
esiaccel/EsiCosimDpiServer.lib,sha256=bYBigD0RtRRSEiDxf4_gvpasLjD8fcUmC0CjRgQiQ0s,604164
|
|
7
|
-
esiaccel/MtiPli.dll,sha256=
|
|
7
|
+
esiaccel/MtiPli.dll,sha256=DCFFcU8YjTOsxO_2dZ4ROoCW1TZEyKQijEKu8qACn2w,14848
|
|
8
8
|
esiaccel/MtiPli.lib,sha256=X0PcXwheCUvBMgQ5BAawePxbXQSLNk5M1FFn6V56ydo,14570
|
|
9
9
|
esiaccel/__init__.py,sha256=65xXWHwJwRePsyhWk837NpzuN0qsNhoAX29TOiSYKGc,905
|
|
10
10
|
esiaccel/accelerator.py,sha256=BcXPsUqcQV3YsVVyYbz9P6JnZLlcnuageFbJwID9_3s,3318
|
|
11
11
|
esiaccel/codegen.py,sha256=uoYELtnIabVvgLeCABj-mWras0BvmSKABPH-cd9nDFk,6560
|
|
12
|
-
esiaccel/esi-cosim.py,sha256=
|
|
13
|
-
esiaccel/esiCppAccel.cp38-win_amd64.pyd,sha256=
|
|
14
|
-
esiaccel/esiquery.exe,sha256=
|
|
12
|
+
esiaccel/esi-cosim.py,sha256=Z8gBKNr4iWtrokBLd2xym9ClwsFP0kQNRCnjMRfytcY,14852
|
|
13
|
+
esiaccel/esiCppAccel.cp38-win_amd64.pyd,sha256=AOVlQLzbumIrMJf-HL55BvKLqvaHd2_ojpdA8H8P0xM,500224
|
|
14
|
+
esiaccel/esiquery.exe,sha256=gCPQ0bGzx3tiq1qIW9hVqWxZrX9HTqIxYs6WLiCGIDk,441856
|
|
15
15
|
esiaccel/types.py,sha256=LFLzUCvtYF6FLsmKet6eJTMq2ija2Z5kxd5Ks6tkS4U,19044
|
|
16
16
|
esiaccel/utils.py,sha256=q-8fmgJ9tUvmBsIvqZiZ7u845IJhOjvjYTQLhhrNYl0,1515
|
|
17
17
|
esiaccel/cmake/esiaccelConfig.cmake,sha256=u2aW99k1lEcmYTG1P3BTJqtmDrj53wUUaBz_jzw8kYY,565
|
|
18
18
|
esiaccel/cosim/Cosim_DpiPkg.sv,sha256=9qGn1VyAVrzBP5At1thV6xrovg0WghICD01Zz9J221E,3458
|
|
19
|
-
esiaccel/cosim/Cosim_Endpoint.sv,sha256=
|
|
19
|
+
esiaccel/cosim/Cosim_Endpoint.sv,sha256=2F7UQYWavUlWx7Iqi_6iawn5geZRPG96H8rDBBDRAQ0,8391
|
|
20
20
|
esiaccel/cosim/Cosim_Manifest.sv,sha256=vl9b6XieEkP880IBw1ferekBnDJwFanZZggJJGertXM,1123
|
|
21
21
|
esiaccel/cosim/driver.cpp,sha256=DrEKkSN7Y_Hu7wcaUulH5mbC2L4yB9xLClRMeRUpzHM,3842
|
|
22
22
|
esiaccel/cosim/driver.sv,sha256=ro-j9GM164A1W0MDPkqYfEn3TUKHSqVvgjO31fnloQI,1428
|
|
@@ -35,9 +35,9 @@ esiaccel/include/esi/Utils.h,sha256=KPd75GajIFeTBVJocXBjwsJqhbZg-ShWZCIe3oQdBss,
|
|
|
35
35
|
esiaccel/include/esi/backends/Cosim.h,sha256=s7vYd0ra6m1nvk-n37MjvBoGVI-CCUKBt0DU4PKlaHM,2838
|
|
36
36
|
esiaccel/include/esi/backends/RpcServer.h,sha256=WMwnhwU2qnrcglGNeiKg9QQHpkDx1QE1JydKYDK4jqE,1856
|
|
37
37
|
esiaccel/include/esi/backends/Trace.h,sha256=kx4wwLH3a0ndmRUdaDyYGZ1SP83zlpFrk30Nw8ZrJJA,3286
|
|
38
|
-
esiaccel-0.1.5.
|
|
39
|
-
esiaccel-0.1.5.
|
|
40
|
-
esiaccel-0.1.5.
|
|
41
|
-
esiaccel-0.1.5.
|
|
42
|
-
esiaccel-0.1.5.
|
|
43
|
-
esiaccel-0.1.5.
|
|
38
|
+
esiaccel-0.1.5.dev163.dist-info/LICENSE,sha256=vtnVnB8_lN1yPYcA5MeT56R8UsQtBhyzZLBvu_KMf7I,13468
|
|
39
|
+
esiaccel-0.1.5.dev163.dist-info/METADATA,sha256=9NbDgmxBQ0GjIf5ptlBsrMTeM1cDs1nWGUolFCVwL-Y,16127
|
|
40
|
+
esiaccel-0.1.5.dev163.dist-info/WHEEL,sha256=2M046GvC9RLU1f1TWyM-2sB7cRKLhAC7ucAFK8l8f24,99
|
|
41
|
+
esiaccel-0.1.5.dev163.dist-info/entry_points.txt,sha256=_CuNLV0fyTURxRREFwpzGycifZW_-7-MyuJNEwKK9J8,137
|
|
42
|
+
esiaccel-0.1.5.dev163.dist-info/top_level.txt,sha256=fYWTWMDK4PDu4ePQ9NtcFHas2k8-d1kWhTs2avPpgB4,9
|
|
43
|
+
esiaccel-0.1.5.dev163.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|