Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module myphoto(O1,O2,O3,O4,I1,I2,I3,I4,I5,I6);
- //parameter delay = 5;
- output O1,O2,O3,O4; //OUTPUT: ~CAPTURE, ~OUTOFFOCUS, ~FLASH, ~THERMONUCLEAR DEVICE;
- input I1,I2,I3,I4,I5,I6; //INPUT: SYSON, TAKE, SELFLASH, NOFLASH, ~INFOCUS, ~LOWLIGHT;
- not n1(nI1,I1);
- not n2(nI2,I2);
- not n3(nI3,I3);
- not n4(nI4,I4);
- not n5(nI5,I5);
- not n6(nI6,I6);
- or group11(o11,nI1,nI2,I3,I3,I5,nI6);
- or group12(o12,nI1,nI2,nI3,I4,I5,I6);
- and and1(O1,o11,o12);
- or o2(O2,nI1,nI2,nI5);
- or group31(o31,nI1,nI2,nI3,I4,I5,I5);
- or group32(o32,nI1,nI2,I4,I5,I6,I6);
- and and3(O3,o31,o32);
- or o4(O4,nI1,nI2,nI3,nI4);
- endmodule
- module testModule(I1, I2, I3, I4, I5, I6, O1, O2, O3, O4);
- input O1, O2, O3, O4;
- output I1, I2, I3, I4, I5, I6;
- reg I1, I2, I3, I4, I5, I6;
- parameter delay=5;
- integer i;
- initial
- begin
- I1 = 0; I2 = 0; I3 = 0; I4 = 0; I5 = 0; I6 = 0;
- for(i=0;i<64;i=i+1)
- begin
- #delay {I1,I2,I3,I4,I5,I6} = i;
- end
- $stop;
- $finish;
- end
- endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement