G2A Many GEOs
SHARE
TWEET

Untitled

a guest Mar 28th, 2020 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module Nor2(inp1,inp2,outp);
  2.   input inp1,inp2;
  3.   output outp;
  4.   reg outp;
  5.   assign #5 outp = ~(inp1 | inp2);
  6. endmodule;
  7.  
  8. module Nor3(inp1,inp2,inp3,outp);
  9.   input inp1,inp2,inp3;
  10.   output outp;
  11.   reg outp;
  12.   assign #5 outp = ~(inp1 | inp2 | inp3);
  13. endmodule;
  14.  
  15. module inventor(inp,outp);
  16.   input inp;
  17.   output outp;
  18.   reg outp;
  19.   assign #5 outp = ~inp;
  20. endmodule;
  21.  
  22. module JK(J, K, C, Q, nQ);
  23.   input J, K, C;
  24.   output Q, nQ;
  25.   wire nor1, nor2, nor3, nor4, nor11, nor12, nor13, nor14, inv;
  26.   reg Q, nQ;
  27.  
  28.   Nor3 noru1(nQ,J,inv,nor1);
  29.   Nor3 nord11(Q,K,inv,nor11);
  30.   Nor2 noru2(nor1,nor12,nor2);
  31.   Nor2 nord12(nor11,nor2,nor12);
  32.   Nor2 noru3(nor3,C,nor3);
  33.   Nor2 nord13(nor13,C,nor13);
  34.   Nor2 noru4(nor4,nor14,nor4);
  35.   Nor2 nord14(nor14,nor4,nor14);
  36.   inventor inv1(C,inv);
  37.  
  38. endmodule;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top