Basic combinational logic circuit fault simulation
Project description
faultsim
Basic combinational logic circuit fault simulation
Python 3.6+ required
Example
download the module and import
import faultsim as sim
build the stuck-at faults example circuit in section 1.3.2.1 of the textbook [1]
X1 = sim.Node("X1")
X2 = sim.Node("X2")
X3 = sim.Node("X3")
NOT1 = sim.NOT("NOT1")
AND1 = sim.AND("AND1")
AND2 = sim.AND("AND2")
OR1 = sim.OR("OR1")
X1.connect(AND1.A)
X2.connect(AND1.B, NOT1.A)
X3.connect(AND2.B)
NOT1.Q.connect(AND2.A)
AND1.Q.connect(OR1.A)
AND2.Q.connect(OR1.B)
PI = sim.NodeList(X1, X2, X3)
PO = sim.NodeList(OR1.Q)
run simulation without fault
PI.setbitstr('000')
PI.propagate()
ans = PO.getbitstr()
assign fault and re-run simulation
X3.stuckat = 1
PI.setbitstr('000')
PI.propagate()
ans = PO.getbitstr()
Reference:
[1] Wang et al. (2006). VLSI Test Principles and Architectures: Design for Testability. Elsevier Publish.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file faultsim-0.0.1.tar.gz.
File metadata
- Download URL: faultsim-0.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2ca6a21fd903e7007eb24fb628d6f81843c6a84cc90a8ba5a0a01c47987ccfd
|
|
| MD5 |
e5f3fa2ea942300adec290cbff516ac8
|
|
| BLAKE2b-256 |
bf48b6cafcd04d687a892870f4ee2f09f14f516bae60b642a0834e0287038c7e
|
File details
Details for the file faultsim-0.0.1-py3-none-any.whl.
File metadata
- Download URL: faultsim-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7af0e636d379b449f62ce894d25caf340e9aac311ef0adfd7a1389a10ed097a2
|
|
| MD5 |
8cf3f4181d099f5cdbfd403606c4285f
|
|
| BLAKE2b-256 |
a282d14aa24009ed4db778a1b8888da1d54e6ffbed6d04049108006c888e319f
|