bcdcounter.txt - /2-digit BCD Counter/October 2 2017/This...

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

View Full Document Right Arrow Icon
//2-digit BCD Counter //October 2, 2017 //This module implements a 2-bit up-down BCD Counter for the scoreboard display with range of 00 to 99. //If the minimum or maximum counts (00 or 99) are reached, //the counter retains the state and does not increase/reduce any further. module bcd_counter_2digit( output reg [3:0] bcd1, bcd0, //most and least sig. bits of the BCD counter input wire inc, dec, //increase count and decrease count buttons input wire clk, //inut clock of the counter input wire reset, // reverts clear_score count to 0 input wire clr //clear button to clear the scores on the scoreboard ); always @ (posedge clk or posedge reset) begin if (reset|clr) begin bcd1 = 4'b0000; bcd0 = 4'b0000; // if global reset button pressed once or clr button
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.

{[ 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