I need help with a vhdl description

Discussion in 'Hardware' started by aarelovich, Oct 11, 2006.

  1. aarelovich

    aarelovich

    Joined:
    Oct 11, 2006
    Messages:
    1
    I need to specify a synchronous reset in a counter. for that I have the two following descriptions:

    ASYCHRONOUS RESET
    ARCHITECTURE a OF prescaler IS
    SIGNAL counter: UNSIGNED(22 downto 0);
    BEGIN
    Conteo:
    PROCESS (Clk, Reset)
    BEGIN
    IF Reset = '0' THEN
    counter <= "00000000000000000000000";
    ELSIF (Clk'Event and Clk='1') THEN
    counter <= counter + "00000000000000000000001";
    END IF;
    END PROCESS conteo;


    SYCHRONOUS RESET
    ARCHITECTURE a OF prescaler IS
    SIGNAL counter: UNSIGNED(22 downto 0);
    BEGIN
    Conteo:
    PROCESS (Clk, Reset)
    BEGIN
    IF (Clk'Event and Clk='1') THEN
    IF Reset = '0' THEN
    counter <= "00000000000000000000000";
    ElSE
    counter <= counter + "00000000000000000000001";
    END IF;
    END IF;
    END PROCESS conteo;

    However the sychrounous reset that I use occupies 10 Logic cells more than the other description according to rpt file.

    Is there any other way to specify the sychronous reset tha makes for a smaller machine.?

    Thanks
     
    aarelovich, Oct 11, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. xripap48

    i need help to build a ram in vhdl

    xripap48, Nov 22, 2006, in forum: Software
    Replies:
    0
    Views:
    779
    xripap48
    Nov 22, 2006
  2. sgdaim
    Replies:
    0
    Views:
    662
    sgdaim
    Nov 22, 2006
  3. shipacpoloy
    Replies:
    0
    Views:
    1,541
    shipacpoloy
    Aug 14, 2007
  4. vijaygubba
    Replies:
    0
    Views:
    1,487
    vijaygubba
    Feb 4, 2008
  5. becool_nikks
    Replies:
    0
    Views:
    2,021
    becool_nikks
    Mar 6, 2009
Loading...

Share This Page