sm - begin if(rst begin a<=1 b<=0 c<=0 d<=0...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
`timescale 1ns / 1ps //////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 23:44:39 04/12/10 // Design Name: // Module Name: sm // Project Name: // Target Device: // Tool versions: // Description: // // Dependencies: // // Revision: // Revision 0.01 - File Created // Additional Comments: // //////////////////////////////////////////////////////////////////////////////// module sm(clk, rst, bin,bout,a ); input clk; input rst; input bin; output bout; output a; reg bout,nxtbout; reg a,nxta,b,nxtb,c,nxtc,d,nxtd,e,nxte,f,nxtf,g,nxtg; [email protected](posedge clk or posedge rst)
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: begin if(rst) begin a<=1; b<=0; c<=0; d<=0; e<=0; f<=0; g<=0; bout<=0; end else begin a<=nxta; b<=nxtb; c<=nxtc; d<=nxtd; e<=nxte; f<=nxtf; g<=nxtg; bout<=nxtbout; end end [email protected](a or b or c or d or e or f or g or bin or bout ) begin if (f|g&~bin) nxta=1; else nxta=0; if (~bin&a) nxtb=1; else nxtb=0; if (bin&a) nxtc=1; else nxtc=0; if (~bin&b) nxtd=1; else nxtd=0; if (c|bin&b) nxte=1; else nxte=0; if (d|~bin&e) nxtf=1; else nxtf=0; if (e&bin) nxtg=1; else nxtg=0; if ((~bin&a)|(~bin&b)|(bin&c)|(~bin&e)|(~bin&g)|(bin&d)|(bin&f)) nxtbout=1; else nxtbout=0; end 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