Skip to content
  • This project
    • Loading...
  • Sign in

Barry / rf-depot

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Graphs
  • Network
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • rf-depot
  • ..
  • stdcell
  • mx21d2.v
  • root's avatar
    added the rest · 5fa3b884
    5fa3b884
    root committed 2020-05-02 06:11:47 +0000
mx21d2.v 437 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
module mx21d2 (z, i0, i1, s);
   input i0, i1, s;
   output z;
`ifdef SYNTH
    reg iz;
    buf (z,iz);
    always @(s or i0 or i1)
       case ({s})
           1'b0: iz = i0;
           1'b1: iz = i1;
       endcase
`else
   not                  G3(N3, s);
   and                  G4(N4, i0, N3),
                        G5(N5, s, i1),
                        G6(N6, i0, i1);
   or                   G7(z, N4, N5, N6);
`endif
endmodule