Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module seq_23234(output out, input seq, input clk, input clear);
- dff dff1(y1,Y1,clk,clear);
- dff dff2(y2,Y2,clk,clear);
- dff dff3(y3,Y3,clk,clear);
- dff dff4(y4,Y4,clk,clear);
- not(A,y1);
- not(B,y2);
- not(C,y3);
- not(D,y4);
- not(E,seq);
- and(out,y1,y2,C,D);
- and(w1,E,y1,y3);
- and(w2,seq,y2,y3,y4);
- and(w3,seq,y1,C,y4);
- and(w4,E,y1,B,D);
- and(w5,E,y3,y4);
- and(w6,E,A,y2,C);
- and(w7,seq,y2,y3,D);
- and(w8,E,C,y4);
- and(w9,y1,C,y4);
- and(w10,y2,C,y4);
- and(w11,E,y3,D);
- and(w12,A,y3,D);
- and(w13,E,y1,D);
- and(w14,E,C,D);
- and(w15,seq,y2,C,y4);
- and(w16,seq,A,y3,D);
- or(Y1,w1,w2,w3,w4);
- or(Y2,w5,w6,w7);
- or(Y3,w8,w9,w10,w11,w12);
- or(Y4,w13,w14,w15,w16);
- endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement