quick.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

   

space.gif

   

space.gif

  ../../images/main/bullet_green_ball.gif Sequential Logic Using Switch
   

space.gif

  ../../images/main/bulllet_4dots_orange.gif D Latch
   

space.gif


  1 module not_switch (out, in);
  2    output  out;               
  3    input   in;                
  4    
  5    supply1 power;             
  6    supply0 ground;            
  7    
  8    pmos (out, power, in);     
  9    nmos (out, ground, in);    
 10    
 11 endmodule
 12 
 13 module d_latch_switch(clk,d,q);
 14 input clk,d;
 15 output q;
 16 
 17 wire clkn, net1, qn;
 18 
 19 not_switch i1 (clkn,clk);
 20 
 21 pmos p1 (d,q,clkn);
 22 nmos n1 (d,q,clk);
 23 
 24 pmos p2 (q,net1,clk);
 25 nmos n2 (q,net1,clkn);
 26 
 27 not_switch i2 (qn,q);
 28 not_switch i3 (net1,qn);
 29 
 30 endmodule
You could download file d_latch_switch.v here
   

space.gif

   

space.gif

   

space.gif

   

space.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

  

Copyright © 1998-2014

Deepak Kumar Tala - All rights reserved

Do you have any Comment? mail me at:deepak@asic-world.com