Pspice Tutorial for Logic Circuits Simulation BME-2322 Logic Design MARWA ABOUARRA Content 1. How to open a new project? 2. How to add necessary libraries for logic circuit simulations? 3. How to add logic gates to your schematic from the library? 4. How to generate a truth table using signals? 5. How to simulate a logic circuit? 6. Build the logic circuit given in Video 3. Repeat the simulation as a practice and add into your tutorial. Comment before and after each step. How to open a new project? 1 How to open a new project? If you want to create a new PSpice project, 1. select the new project icon, which looks like that a. another way is that you can click on File> New> Project… b. after doing that, a New Project box will appear… 2. Enter the name that you would like your project to be, then select Analog or Mixed A/D How to open a new project? 3. In Location, you can place your project in your desired folder. You can also create a new project and name its folder straight through the Browse button. And then you are going to hit OK… 4. a Create PSpice Project box will pop up, select AnaloGNDSymbol.opj How to open a new project? 5. This window will appear, where “example” is the project name. You will click twice on example.dsn to open SCHIMATIC1 folder, then double click again on SCHIMATIC1> PAGE1, once more double click on PAGE1 to finally open up the project’s schematic page. After that you will face the schematic interface where you will be drawing your circuit, you will also see this Just select it by left clicking on the mouse and drag a box around it then hit Delete button. How to add necessary libraries for logic circuit simulations? 2 How to add necessary libraries for logic circuit simulations? 1. If it’s your first time installing the software, the first thing you are going to do in order to use the components is adding libraries also to simulate the circuit, in order to do that, click on Place part (P) icon Click on Add library For example, write eval.olb to add it to the library click open, and so on you can add any library (ANALOG, SOURCE, SOURCESTM etc.…) using this way. How to add logic gates to your schematic from the library? 3 How to add logic gates to your schematic from the library? 1. To search for a specific element, you are going to select all the libraries and in the search box at the top, enter an element that you need, also it will show you where it’s located. (AND, OR, NOT, XOR, NAND, NOR), to add it to your schematic you must double click on it or hit enter, it will be placed on the schematic page, like so Logic Gates Part Name Description AND 7408 2-Input Positive-AND gate OR 7432 2-Input Positive-OR gate INVERTER (NOT) 7404 Inverter gate NAND 7400 2-Input Positive-NAND gate NOR 7402 2-Input Positive-NOR gate XOR 7486 2-Input XOR gate How to add logic gates to your schematic from the library? The gates image in Pspice AND OR NOR XOR INVERTER NAND How to generate a truth table using signals? 4 How to generate a truth table using signals? 1. When generating a signal, you must specify the time Data you need to give are: a. Initial value b. Final value c. Rise time d. Fall time e. Delay f. Period(T); T = 1/f g. On time For rise and fall time you need to read the data sheet for the component 2. Run it as transient 3. Stop time depends on the largest value How to generate a truth table using signals? A 1 0 1 0 0 0 B 0 1 1 1 A B AUB 0 0 0 0 1 0 1 0 0 1 1 1