home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 180 / dpcs0203b.iso / editorial / easypc / Easy-Spice / data1.cab / Examples / Generic_Dig / gates.spi < prev    next >
Encoding:
Text File  |  2002-07-08  |  221 b   |  7 lines

  1. .model Counter_4 d_logic_block file=$$Counter_4 user=[10n]
  2. .file $$Counter_4
  3. PORT (DELAY=1e-12) output out[0:31] ; 
  4. EDGE (CLOCK=in[0], DELAY=USER[0]) count ; 
  5. count = count>=15? 0 : count+1 ; 
  6. output=count ; 
  7. .endf