digsim-engine 1.13.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.
- digsim/circuit/__init__.py +7 -0
- digsim/circuit/_circuit.py +764 -0
- digsim/circuit/_native.py +1029 -0
- digsim/circuit/_waves_writer.py +131 -0
- digsim/circuit/components/__init__.py +52 -0
- digsim/circuit/components/_arithmetic.py +266 -0
- digsim/circuit/components/_bus_bits.py +103 -0
- digsim/circuit/components/_button.py +61 -0
- digsim/circuit/components/_buzzer.py +64 -0
- digsim/circuit/components/_circuit_port.py +293 -0
- digsim/circuit/components/_clock.py +105 -0
- digsim/circuit/components/_counter.py +147 -0
- digsim/circuit/components/_decoder.py +140 -0
- digsim/circuit/components/_dip_switch.py +91 -0
- digsim/circuit/components/_flip_flops.py +162 -0
- digsim/circuit/components/_gates.py +408 -0
- digsim/circuit/components/_hd44780.py +451 -0
- digsim/circuit/components/_hd44780_rom.py +118 -0
- digsim/circuit/components/_hexdigit.py +107 -0
- digsim/circuit/components/_ic.py +96 -0
- digsim/circuit/components/_label_wire.py +204 -0
- digsim/circuit/components/_led.py +66 -0
- digsim/circuit/components/_led_bar.py +67 -0
- digsim/circuit/components/_logic_analyzer.py +111 -0
- digsim/circuit/components/_memory.py +517 -0
- digsim/circuit/components/_memstdout.py +60 -0
- digsim/circuit/components/_note.py +40 -0
- digsim/circuit/components/_on_off_switch.py +64 -0
- digsim/circuit/components/_probe.py +90 -0
- digsim/circuit/components/_seven_segment.py +47 -0
- digsim/circuit/components/_splitter.py +214 -0
- digsim/circuit/components/_static_level.py +54 -0
- digsim/circuit/components/_static_value.py +97 -0
- digsim/circuit/components/_subcircuit.py +439 -0
- digsim/circuit/components/_tristate_buffer.py +81 -0
- digsim/circuit/components/_verilog_component.py +26 -0
- digsim/circuit/components/_yosys_atoms.py +1373 -0
- digsim/circuit/components/_yosys_component.py +1126 -0
- digsim/circuit/components/_yosys_functional.py +1714 -0
- digsim/circuit/components/atoms/__init__.py +28 -0
- digsim/circuit/components/atoms/_component.py +329 -0
- digsim/circuit/components/atoms/_digsim_exception.py +8 -0
- digsim/circuit/components/atoms/_port.py +708 -0
- digsim/circuit/components/ic/4017.json +1062 -0
- digsim/circuit/components/ic/4021.json +286 -0
- digsim/circuit/components/ic/4029.json +1447 -0
- digsim/circuit/components/ic/4094.json +584 -0
- digsim/circuit/components/ic/4511.json +1071 -0
- digsim/circuit/components/ic/74138.json +763 -0
- digsim/circuit/components/ic/74139.json +610 -0
- digsim/circuit/components/ic/74148.json +1368 -0
- digsim/circuit/components/ic/74151.json +303 -0
- digsim/circuit/components/ic/74157.json +248 -0
- digsim/circuit/components/ic/74161.json +674 -0
- digsim/circuit/components/ic/74162.json +631 -0
- digsim/circuit/components/ic/74163.json +673 -0
- digsim/circuit/components/ic/74164.json +267 -0
- digsim/circuit/components/ic/74165.json +319 -0
- digsim/circuit/components/ic/74173.json +403 -0
- digsim/circuit/components/ic/74181.json +2002 -0
- digsim/circuit/components/ic/74182.json +893 -0
- digsim/circuit/components/ic/74193.json +1386 -0
- digsim/circuit/components/ic/74194.json +919 -0
- digsim/circuit/components/ic/74245.json +466 -0
- digsim/circuit/components/ic/74283.json +732 -0
- digsim/circuit/components/ic/74374.json +395 -0
- digsim/circuit/components/ic/7448.json +834 -0
- digsim/circuit/components/ic/74574.json +395 -0
- digsim/circuit/components/ic/74595.json +603 -0
- digsim/circuit/components/ic/7485.json +1042 -0
- digsim/storage_model/__init__.py +19 -0
- digsim/storage_model/_app.py +159 -0
- digsim/storage_model/_circuit.py +266 -0
- digsim/synth/__init__.py +12 -0
- digsim/synth/__main__.py +111 -0
- digsim/synth/_synthesis.py +529 -0
- digsim/utils/__init__.py +25 -0
- digsim/utils/_netlist_graph.py +199 -0
- digsim/utils/_yosys_netlist.py +251 -0
- digsim/verilog/__init__.py +19 -0
- digsim/verilog/__main__.py +78 -0
- digsim/verilog/_formatter.py +225 -0
- digsim/verilog/_lexer.py +218 -0
- digsim_engine-1.13.0.dist-info/METADATA +59 -0
- digsim_engine-1.13.0.dist-info/RECORD +88 -0
- digsim_engine-1.13.0.dist-info/WHEEL +5 -0
- digsim_engine-1.13.0.dist-info/licenses/LICENSE.md +32 -0
- digsim_engine-1.13.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
{
|
|
2
|
+
"creator": "Yosys 0.70 (git sha1 28ba3cb92, Release, Clang /workspace/YoWASP/yosys/wasi-sdk-33.0-x86_64-linux/share/cmake/../..//bin/clang++ 22.1.0)",
|
|
3
|
+
"modules": {
|
|
4
|
+
"ttl_74574": {
|
|
5
|
+
"attributes": {
|
|
6
|
+
"hdlname": "ttl_74574",
|
|
7
|
+
"top": "00000000000000000000000000000001",
|
|
8
|
+
"src": "verilog/74xx/74574.v:8.1-20.10"
|
|
9
|
+
},
|
|
10
|
+
"ports": {
|
|
11
|
+
"D": {
|
|
12
|
+
"direction": "input",
|
|
13
|
+
"bits": [ 2, 3, 4, 5, 6, 7, 8, 9 ]
|
|
14
|
+
},
|
|
15
|
+
"Clk": {
|
|
16
|
+
"direction": "input",
|
|
17
|
+
"bits": [ 10 ]
|
|
18
|
+
},
|
|
19
|
+
"OE_bar": {
|
|
20
|
+
"direction": "input",
|
|
21
|
+
"bits": [ 11 ]
|
|
22
|
+
},
|
|
23
|
+
"Q": {
|
|
24
|
+
"direction": "output",
|
|
25
|
+
"bits": [ 12, 13, 14, 15, 16, 17, 18, 19 ]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"cells": {
|
|
29
|
+
"$auto$ff.cc:337:slice$86": {
|
|
30
|
+
"hide_name": 1,
|
|
31
|
+
"type": "$_DFF_P_",
|
|
32
|
+
"parameters": {
|
|
33
|
+
},
|
|
34
|
+
"attributes": {
|
|
35
|
+
"src": "verilog/74xx/74574.v:16.4-17.20"
|
|
36
|
+
},
|
|
37
|
+
"port_directions": {
|
|
38
|
+
"C": "input",
|
|
39
|
+
"D": "input",
|
|
40
|
+
"Q": "output"
|
|
41
|
+
},
|
|
42
|
+
"connections": {
|
|
43
|
+
"C": [ 10 ],
|
|
44
|
+
"D": [ 2 ],
|
|
45
|
+
"Q": [ 20 ]
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"$auto$ff.cc:337:slice$87": {
|
|
49
|
+
"hide_name": 1,
|
|
50
|
+
"type": "$_DFF_P_",
|
|
51
|
+
"parameters": {
|
|
52
|
+
},
|
|
53
|
+
"attributes": {
|
|
54
|
+
"src": "verilog/74xx/74574.v:16.4-17.20"
|
|
55
|
+
},
|
|
56
|
+
"port_directions": {
|
|
57
|
+
"C": "input",
|
|
58
|
+
"D": "input",
|
|
59
|
+
"Q": "output"
|
|
60
|
+
},
|
|
61
|
+
"connections": {
|
|
62
|
+
"C": [ 10 ],
|
|
63
|
+
"D": [ 3 ],
|
|
64
|
+
"Q": [ 21 ]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"$auto$ff.cc:337:slice$88": {
|
|
68
|
+
"hide_name": 1,
|
|
69
|
+
"type": "$_DFF_P_",
|
|
70
|
+
"parameters": {
|
|
71
|
+
},
|
|
72
|
+
"attributes": {
|
|
73
|
+
"src": "verilog/74xx/74574.v:16.4-17.20"
|
|
74
|
+
},
|
|
75
|
+
"port_directions": {
|
|
76
|
+
"C": "input",
|
|
77
|
+
"D": "input",
|
|
78
|
+
"Q": "output"
|
|
79
|
+
},
|
|
80
|
+
"connections": {
|
|
81
|
+
"C": [ 10 ],
|
|
82
|
+
"D": [ 4 ],
|
|
83
|
+
"Q": [ 22 ]
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"$auto$ff.cc:337:slice$89": {
|
|
87
|
+
"hide_name": 1,
|
|
88
|
+
"type": "$_DFF_P_",
|
|
89
|
+
"parameters": {
|
|
90
|
+
},
|
|
91
|
+
"attributes": {
|
|
92
|
+
"src": "verilog/74xx/74574.v:16.4-17.20"
|
|
93
|
+
},
|
|
94
|
+
"port_directions": {
|
|
95
|
+
"C": "input",
|
|
96
|
+
"D": "input",
|
|
97
|
+
"Q": "output"
|
|
98
|
+
},
|
|
99
|
+
"connections": {
|
|
100
|
+
"C": [ 10 ],
|
|
101
|
+
"D": [ 5 ],
|
|
102
|
+
"Q": [ 23 ]
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"$auto$ff.cc:337:slice$90": {
|
|
106
|
+
"hide_name": 1,
|
|
107
|
+
"type": "$_DFF_P_",
|
|
108
|
+
"parameters": {
|
|
109
|
+
},
|
|
110
|
+
"attributes": {
|
|
111
|
+
"src": "verilog/74xx/74574.v:16.4-17.20"
|
|
112
|
+
},
|
|
113
|
+
"port_directions": {
|
|
114
|
+
"C": "input",
|
|
115
|
+
"D": "input",
|
|
116
|
+
"Q": "output"
|
|
117
|
+
},
|
|
118
|
+
"connections": {
|
|
119
|
+
"C": [ 10 ],
|
|
120
|
+
"D": [ 6 ],
|
|
121
|
+
"Q": [ 24 ]
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"$auto$ff.cc:337:slice$91": {
|
|
125
|
+
"hide_name": 1,
|
|
126
|
+
"type": "$_DFF_P_",
|
|
127
|
+
"parameters": {
|
|
128
|
+
},
|
|
129
|
+
"attributes": {
|
|
130
|
+
"src": "verilog/74xx/74574.v:16.4-17.20"
|
|
131
|
+
},
|
|
132
|
+
"port_directions": {
|
|
133
|
+
"C": "input",
|
|
134
|
+
"D": "input",
|
|
135
|
+
"Q": "output"
|
|
136
|
+
},
|
|
137
|
+
"connections": {
|
|
138
|
+
"C": [ 10 ],
|
|
139
|
+
"D": [ 7 ],
|
|
140
|
+
"Q": [ 25 ]
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"$auto$ff.cc:337:slice$92": {
|
|
144
|
+
"hide_name": 1,
|
|
145
|
+
"type": "$_DFF_P_",
|
|
146
|
+
"parameters": {
|
|
147
|
+
},
|
|
148
|
+
"attributes": {
|
|
149
|
+
"src": "verilog/74xx/74574.v:16.4-17.20"
|
|
150
|
+
},
|
|
151
|
+
"port_directions": {
|
|
152
|
+
"C": "input",
|
|
153
|
+
"D": "input",
|
|
154
|
+
"Q": "output"
|
|
155
|
+
},
|
|
156
|
+
"connections": {
|
|
157
|
+
"C": [ 10 ],
|
|
158
|
+
"D": [ 8 ],
|
|
159
|
+
"Q": [ 26 ]
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"$auto$ff.cc:337:slice$93": {
|
|
163
|
+
"hide_name": 1,
|
|
164
|
+
"type": "$_DFF_P_",
|
|
165
|
+
"parameters": {
|
|
166
|
+
},
|
|
167
|
+
"attributes": {
|
|
168
|
+
"src": "verilog/74xx/74574.v:16.4-17.20"
|
|
169
|
+
},
|
|
170
|
+
"port_directions": {
|
|
171
|
+
"C": "input",
|
|
172
|
+
"D": "input",
|
|
173
|
+
"Q": "output"
|
|
174
|
+
},
|
|
175
|
+
"connections": {
|
|
176
|
+
"C": [ 10 ],
|
|
177
|
+
"D": [ 9 ],
|
|
178
|
+
"Q": [ 27 ]
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"$auto$simplemap.cc:331:simplemap_tribuf$78": {
|
|
182
|
+
"hide_name": 1,
|
|
183
|
+
"type": "$_TBUF_",
|
|
184
|
+
"parameters": {
|
|
185
|
+
},
|
|
186
|
+
"attributes": {
|
|
187
|
+
"src": "verilog/74xx/74574.v:19.15-19.39"
|
|
188
|
+
},
|
|
189
|
+
"port_directions": {
|
|
190
|
+
"A": "input",
|
|
191
|
+
"E": "input",
|
|
192
|
+
"Y": "output"
|
|
193
|
+
},
|
|
194
|
+
"connections": {
|
|
195
|
+
"A": [ 20 ],
|
|
196
|
+
"E": [ 28 ],
|
|
197
|
+
"Y": [ 12 ]
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"$auto$simplemap.cc:331:simplemap_tribuf$79": {
|
|
201
|
+
"hide_name": 1,
|
|
202
|
+
"type": "$_TBUF_",
|
|
203
|
+
"parameters": {
|
|
204
|
+
},
|
|
205
|
+
"attributes": {
|
|
206
|
+
"src": "verilog/74xx/74574.v:19.15-19.39"
|
|
207
|
+
},
|
|
208
|
+
"port_directions": {
|
|
209
|
+
"A": "input",
|
|
210
|
+
"E": "input",
|
|
211
|
+
"Y": "output"
|
|
212
|
+
},
|
|
213
|
+
"connections": {
|
|
214
|
+
"A": [ 21 ],
|
|
215
|
+
"E": [ 28 ],
|
|
216
|
+
"Y": [ 13 ]
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"$auto$simplemap.cc:331:simplemap_tribuf$80": {
|
|
220
|
+
"hide_name": 1,
|
|
221
|
+
"type": "$_TBUF_",
|
|
222
|
+
"parameters": {
|
|
223
|
+
},
|
|
224
|
+
"attributes": {
|
|
225
|
+
"src": "verilog/74xx/74574.v:19.15-19.39"
|
|
226
|
+
},
|
|
227
|
+
"port_directions": {
|
|
228
|
+
"A": "input",
|
|
229
|
+
"E": "input",
|
|
230
|
+
"Y": "output"
|
|
231
|
+
},
|
|
232
|
+
"connections": {
|
|
233
|
+
"A": [ 22 ],
|
|
234
|
+
"E": [ 28 ],
|
|
235
|
+
"Y": [ 14 ]
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
"$auto$simplemap.cc:331:simplemap_tribuf$81": {
|
|
239
|
+
"hide_name": 1,
|
|
240
|
+
"type": "$_TBUF_",
|
|
241
|
+
"parameters": {
|
|
242
|
+
},
|
|
243
|
+
"attributes": {
|
|
244
|
+
"src": "verilog/74xx/74574.v:19.15-19.39"
|
|
245
|
+
},
|
|
246
|
+
"port_directions": {
|
|
247
|
+
"A": "input",
|
|
248
|
+
"E": "input",
|
|
249
|
+
"Y": "output"
|
|
250
|
+
},
|
|
251
|
+
"connections": {
|
|
252
|
+
"A": [ 23 ],
|
|
253
|
+
"E": [ 28 ],
|
|
254
|
+
"Y": [ 15 ]
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"$auto$simplemap.cc:331:simplemap_tribuf$82": {
|
|
258
|
+
"hide_name": 1,
|
|
259
|
+
"type": "$_TBUF_",
|
|
260
|
+
"parameters": {
|
|
261
|
+
},
|
|
262
|
+
"attributes": {
|
|
263
|
+
"src": "verilog/74xx/74574.v:19.15-19.39"
|
|
264
|
+
},
|
|
265
|
+
"port_directions": {
|
|
266
|
+
"A": "input",
|
|
267
|
+
"E": "input",
|
|
268
|
+
"Y": "output"
|
|
269
|
+
},
|
|
270
|
+
"connections": {
|
|
271
|
+
"A": [ 24 ],
|
|
272
|
+
"E": [ 28 ],
|
|
273
|
+
"Y": [ 16 ]
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"$auto$simplemap.cc:331:simplemap_tribuf$83": {
|
|
277
|
+
"hide_name": 1,
|
|
278
|
+
"type": "$_TBUF_",
|
|
279
|
+
"parameters": {
|
|
280
|
+
},
|
|
281
|
+
"attributes": {
|
|
282
|
+
"src": "verilog/74xx/74574.v:19.15-19.39"
|
|
283
|
+
},
|
|
284
|
+
"port_directions": {
|
|
285
|
+
"A": "input",
|
|
286
|
+
"E": "input",
|
|
287
|
+
"Y": "output"
|
|
288
|
+
},
|
|
289
|
+
"connections": {
|
|
290
|
+
"A": [ 25 ],
|
|
291
|
+
"E": [ 28 ],
|
|
292
|
+
"Y": [ 17 ]
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
"$auto$simplemap.cc:331:simplemap_tribuf$84": {
|
|
296
|
+
"hide_name": 1,
|
|
297
|
+
"type": "$_TBUF_",
|
|
298
|
+
"parameters": {
|
|
299
|
+
},
|
|
300
|
+
"attributes": {
|
|
301
|
+
"src": "verilog/74xx/74574.v:19.15-19.39"
|
|
302
|
+
},
|
|
303
|
+
"port_directions": {
|
|
304
|
+
"A": "input",
|
|
305
|
+
"E": "input",
|
|
306
|
+
"Y": "output"
|
|
307
|
+
},
|
|
308
|
+
"connections": {
|
|
309
|
+
"A": [ 26 ],
|
|
310
|
+
"E": [ 28 ],
|
|
311
|
+
"Y": [ 18 ]
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
"$auto$simplemap.cc:331:simplemap_tribuf$85": {
|
|
315
|
+
"hide_name": 1,
|
|
316
|
+
"type": "$_TBUF_",
|
|
317
|
+
"parameters": {
|
|
318
|
+
},
|
|
319
|
+
"attributes": {
|
|
320
|
+
"src": "verilog/74xx/74574.v:19.15-19.39"
|
|
321
|
+
},
|
|
322
|
+
"port_directions": {
|
|
323
|
+
"A": "input",
|
|
324
|
+
"E": "input",
|
|
325
|
+
"Y": "output"
|
|
326
|
+
},
|
|
327
|
+
"connections": {
|
|
328
|
+
"A": [ 27 ],
|
|
329
|
+
"E": [ 28 ],
|
|
330
|
+
"Y": [ 19 ]
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"$auto$simplemap.cc:46:simplemap_not$77": {
|
|
334
|
+
"hide_name": 1,
|
|
335
|
+
"type": "$_NOT_",
|
|
336
|
+
"parameters": {
|
|
337
|
+
},
|
|
338
|
+
"attributes": {
|
|
339
|
+
},
|
|
340
|
+
"port_directions": {
|
|
341
|
+
"A": "input",
|
|
342
|
+
"Y": "output"
|
|
343
|
+
},
|
|
344
|
+
"connections": {
|
|
345
|
+
"A": [ 11 ],
|
|
346
|
+
"Y": [ 28 ]
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
"netnames": {
|
|
351
|
+
"$auto$rtlil.cc:3245:Not$5": {
|
|
352
|
+
"hide_name": 1,
|
|
353
|
+
"bits": [ 28 ],
|
|
354
|
+
"attributes": {
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
"Clk": {
|
|
358
|
+
"hide_name": 0,
|
|
359
|
+
"bits": [ 10 ],
|
|
360
|
+
"attributes": {
|
|
361
|
+
"src": "verilog/74xx/74574.v:10.11-10.14"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
"D": {
|
|
365
|
+
"hide_name": 0,
|
|
366
|
+
"bits": [ 2, 3, 4, 5, 6, 7, 8, 9 ],
|
|
367
|
+
"attributes": {
|
|
368
|
+
"src": "verilog/74xx/74574.v:9.17-9.18"
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
"OE_bar": {
|
|
372
|
+
"hide_name": 0,
|
|
373
|
+
"bits": [ 11 ],
|
|
374
|
+
"attributes": {
|
|
375
|
+
"src": "verilog/74xx/74574.v:11.11-11.17"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"Q": {
|
|
379
|
+
"hide_name": 0,
|
|
380
|
+
"bits": [ 12, 13, 14, 15, 16, 17, 18, 19 ],
|
|
381
|
+
"attributes": {
|
|
382
|
+
"src": "verilog/74xx/74574.v:12.18-12.19"
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"register": {
|
|
386
|
+
"hide_name": 0,
|
|
387
|
+
"bits": [ 20, 21, 22, 23, 24, 25, 26, 27 ],
|
|
388
|
+
"attributes": {
|
|
389
|
+
"src": "verilog/74xx/74574.v:14.14-14.22"
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
}
|