Skip to content

Instantly share code, notes, and snippets.

@Siddhant
Created February 5, 2015 12:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Siddhant/754eb04e03df86d36ed6 to your computer and use it in GitHub Desktop.
Save Siddhant/754eb04e03df86d36ed6 to your computer and use it in GitHub Desktop.
[ngspice] 2bit AND simulation
.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
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