Giter Club home page Giter Club logo

pypodem's Introduction

User Manual: Fault Simulator and PODEM

User Manual: PODEM

Simulation environment

This code depends on the Python 3.8+.

Install python for your operating system from https://www.python.org/downloads/. Ensure that Python is added to path when installing on Windows as shown in the image below.

drawing
Check the option to Add to path

Running the PODEM vector generator

First write the faults to be tested for in a file in the following format

faultFile.txt

Net 5 s-a-1
Net 1 s-a-0
Net 3 s-a-0

Here Net number 5 is stuck at 1, Net number 1 is stuck at 0 and net number 3 is stuck at 0.

To run the simulator on a circuit names s27.txt located in the files folder relative to the PODEM.py script, and fault file named faultFile.txt in the files folder relative to the PODEM.py script, run the following command. The --cktFile gives the relative or full path for the circuit file and --faultFile gives the path to the faults file.

python PODEM.py --cktFile .\files\s27.ckt --faultFile .\files\faultFile.txt

Expected output

Net 5 s-a-1 - X0X10X0
Net 1 s-a-0 - 1XXX1XX
Net 3 s-a-0 - X11XXXX

PODEM with deductive fault simulator

To verify the PODEM output with the deductive fault simulator, give the --dfs flag with the same command as the previous section. This will automatically test the output vectors with the deductive fault simulator.

python PODEM.py --cktFile .\files\s27.ckt --faultFile .\files\faultFile.txt --dfs

Expected output

Net 5 s-a-1 - X0X10X0
Deductive Fault Simulator Passed.
Net 1 s-a-0 - 1XXX1XX
Deductive Fault Simulator Passed.
Net 3 s-a-0 - X11XXXX
Deductive Fault Simulator Passed.

PODEM with fanouts

To run PODEM with fanouts considered, use the --fanout flag

python PODEM.py --fanout --cktFile .\files\s27.ckt --faultFile .\files\faultFile.txt --dfs

With fault file having the Fanout nodes specified

Net 5FO s-a-1
Net 5_1 s-a-0

Expected output

Net 5 s-a-1 - X0X10X0
Deductive Fault Simulator Passed.
Net 1 s-a-0 - 1XXX1XX
Deductive Fault Simulator Passed.
Net 3 s-a-0 - X11XXXX
Deductive Fault Simulator Passed.

pypodem's People

Contributors

shashankholla avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.