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

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