Monday, 22 July 2013

Design of BCD Counter using Behavior Modeling Style. (VHDL Code)

Design of BCD Counter using Behavior Modeling Style -

Output Waveform :    BCD Counter

VHDL Code -

-- Title       : bcd_counter
-- Design      : vhdl_upload2
-- Author      : Naresh Singh Dobal
-- Company     :
-- VHDL Programs &  Exercise with Naresh Singh Dobal.
-- File        : BCD Counter.vhd

library IEEE;
use IEEE.STD_LOGIC_1164.all; 
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;

entity bcd_counter is
         reset : in STD_LOGIC;
         clk : in STD_LOGIC;
         dout : out STD_LOGIC_VECTOR(3 downto 0)
end bcd_counter;

architecture bcd_counter_arc of bcd_counter is

    count : process (reset,clk) is
    variable m : std_logic_vector (3 downto 0) := "0000";
        if (reset='1') then
            m := "0000";
        elsif (rising_edge (clk)) then
            m := m + 1;
        end if;         
        if (m="1010") then
            m := "0000";
        end if;
        dout <= m;
    end process count;

end bcd_counter_arc;


Anonymous said...

thanku sir

Anonymous said...

thank youuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu

Anonymous said...

thank youuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu gabbar singh left us

Anonymous said...


Saurabh Kaushik said...

thank youuuuuuuuuuuuuuuuuu

EduDrive Services said...

EduDrive Education Help Services is one of the best premier online education services. The mission of our company is to provide accurate and detailed solutions to the academic problems faced by students.

Currently we are offering two kinds of services: 1) Writing 2) Questions & Answers. We cover all domains in these two services. Our professional experts ensure not only getting good grades in the exams but also the better understanding of the subjects.

We have a dedicated team of professional experts to provide excellent writing services in Engineering (Electrical, Electronics, Computer Science, Mechanical, Civil), Management, Accounting, Finance, Economics, Biology, Physics, Chemistry, Law, Mathematics, Statistics, Geography, Political science, History, English, Law, Pharmacy and many more.

If you want to use our services then email us at or call us at (+91) – 7340527140.

Please Visit our website:

Post a Comment

Design by Wordpress Theme | Bloggerized by Free Blogger Templates | coupon codes