home *** CD-ROM | disk | FTP | other *** search
- module ifif flag '-r3'
- title 'nested IF THEN ELSE
- Dave Pellerin Data I/O Redmond Wa 12 Oct 1984'
- UFO device 'P16R6';
-
- Clk,A,B,C,OE Pin 1,2,3,4,11;
- Q17,Q16,Q15,Q14 Pin 17,16,15,14;
-
- state_diagram [Q15,Q14];
-
- State 0: goto 3;
-
- State 1: goto 3;
-
- State 2: goto 3;
-
- State 3: if A then 2 else if B then 1 else 0;
-
- test_vectors
- ([Clk, A, B,OE] -> [Q15,Q14])
- [.C., 0, 0, 0] -> 0;
- [.C., 0, 0, 0] -> 3;
-
- [.C., 0, 1, 0] -> 1;
- [.C., 0, 1, 0] -> 3;
-
- [.C., 1, 0, 0] -> 2;
- [.C., 1, 0, 0] -> 3;
-
- [.C., 1, 1, 0] -> 2;
- [.C., 1, 1, 0] -> 3;
-
- end ifif
-