home *** CD-ROM | disk | FTP | other *** search
- .model Counter_4_Reset d_logic_block file=$$counter_4_Reset user=[10n]
- .file $$counter_4_Reset
- PORT (DELAY=1e-12) output out[0:31] ;
- EDGE (CLOCK=in[0], DELAY=USER[0]) count ;
- count := in[1] ? 0 ;
- count = count>=15? 0 : count+1 ;
- output=count ;
- .endf
-
- .model Counter_4 d_logic_block file=$$counter_4 user=[10n]
- .file $$counter_4
- PORT (DELAY=1e-12) output out[0:31] ;
- EDGE (CLOCK=in[0], DELAY=USER[0]) count ;
- count = count>=15? 0 : count+1 ;
- output=count ;
- .endf
-