Advertisement
Guest User

seq_23234.v

a guest
Jan 1st, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. module seq_23234(output out, input seq, input clk, input clear);
  4.  
  5. dff dff1(y1,Y1,clk,clear);
  6.  
  7. dff dff2(y2,Y2,clk,clear);
  8.  
  9. dff dff3(y3,Y3,clk,clear);
  10.  
  11. dff dff4(y4,Y4,clk,clear);
  12.  
  13.  
  14.  
  15.  
  16. not(A,y1);
  17.  
  18. not(B,y2);
  19.  
  20. not(C,y3);
  21.  
  22. not(D,y4);
  23.  
  24. not(E,seq);
  25.  
  26.  
  27. and(out,y1,y2,C,D);
  28.  
  29. and(w1,E,y1,y3);
  30.  
  31. and(w2,seq,y2,y3,y4);
  32.  
  33. and(w3,seq,y1,C,y4);
  34.  
  35. and(w4,E,y1,B,D);
  36.  
  37. and(w5,E,y3,y4);
  38.  
  39. and(w6,E,A,y2,C);
  40.  
  41. and(w7,seq,y2,y3,D);
  42.  
  43.  
  44. and(w8,E,C,y4);
  45.  
  46. and(w9,y1,C,y4);
  47.  
  48. and(w10,y2,C,y4);
  49.  
  50. and(w11,E,y3,D);
  51.  
  52. and(w12,A,y3,D);
  53.  
  54. and(w13,E,y1,D);
  55.  
  56. and(w14,E,C,D);
  57.  
  58. and(w15,seq,y2,C,y4);
  59.  
  60. and(w16,seq,A,y3,D);
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67. or(Y1,w1,w2,w3,w4);
  68.  
  69. or(Y2,w5,w6,w7);
  70.  
  71. or(Y3,w8,w9,w10,w11,w12);
  72.  
  73. or(Y4,w13,w14,w15,w16);
  74.  
  75. endmodule
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement