q1 - wire anot,bnot,cnot,xnot,e1,e2,e3,e4,e5,e6,e7 not...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
`timescale 1ns / 1ps //////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 11:56:11 03/14/10 // Design Name: // Module Name: q1 // Project Name: // Target Device: // Tool versions: // Description: // // Dependencies: // // Revision: // Revision 0.01 - File Created // Additional Comments: // //////////////////////////////////////////////////////////////////////////////// module q1(x,a,b,c,y,clk,rst); input x,clk,rst; output[2:0]y; output a,b,c;
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: wire anot,bnot,cnot,xnot,e1,e2,e3,e4,e5,e6,e7; not n1(anot,a), n2(bnot,b), n3(cnot,c), n4(xnot,x); and a1(e1,a,bnot), a2(e2,xnot,a), a3(e3,a,b,cnot), a4(e4,x,anot,b,c), a5(e5,b,cnot), a6(e6,xnot,b), a7(e7,x,bnot,c); //or or a8(y[0],e1,e2,e3,e4), a9(y[1],e5,e6,e7); xor x3(y[2],x,c); /*assign d1=(a&~b)|(~x&a)|(a&b&~c)|(x&~a&b&c), d2=(b&~c)|(~x&b)|(x&~b&c), d3=x^c, y[0]=d1, y[1]=d2, y[2]=d3; */ dff ss(a,y[0],clk,rst); dff sw(b,y[1],clk,rst); dff se(c,y[2],clk,rst); endmodule...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern