Created
February 5, 2015 12:20
-
-
Save Siddhant/754eb04e03df86d36ed6 to your computer and use it in GitHub Desktop.
[ngspice] 2bit AND simulation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.title AND gate simulation | |
A1 [1 2] 3 and | |
.model and d_and(rise_delay=0.1ps fall_delay=0.2ps) | |
* now test it | |
Asource [1 2] d_source_model | |
.model d_source_model d_source(input_file="2bit_input_for_AND") | |
.tran 1ns 50ns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0ns Uu Uu | |
1ns 0s 0s | |
10ns 0s 1s | |
20ns 1s 0s | |
30ns 1s 1s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment