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

  1. .model Shift_11 d_logic_block file=$$shift_11 user=[10n]
  2. .file $$shift_11 
  3. PORT (DELAY=1e-12) output out[0:31] ; 
  4. EDGE (CLOCK=in[0], DELAY=USER[0]) shift ; 
  5. shift = shift<<1 | in[1] ; 
  6. output=shift ; 
  7. .endf 
  8.