LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Sponsors
  • Mirrors
  • Logos
  • Contact us
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cvs-checkins > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: cvs at opencores.org<cvs@o...>
    Date: Mon Apr 28 00:12:33 CEST 2008
    Subject: [cvs-checkins] MODIFIED: t400 ...
    Top
    Date: 00/08/04 28:00:12

    Modified: t400/sw/hex2rom hex2rom.cpp
    Log:
    build D directly in clocked process for synchronous ROM




    Revision Changes Path
    1.2 t400/sw/hex2rom/hex2rom.cpp

    http://www.opencores.org/cvsweb.shtml/t400/sw/hex2rom/hex2rom.cpp.diff?r1=1.1&r2=1.2

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: hex2rom.cpp
    ===================================================================
    RCS file: /cvsroot/arniml/t400/sw/hex2rom/hex2rom.cpp,v
    retrieving revision 1.1
    retrieving revision 1.2
    diff -u -b -r1.1 -r1.2
    --- hex2rom.cpp 5 Jun 2006 22:46:04 -0000 1.1
    +++ hex2rom.cpp 27 Apr 2008 22:12:32 -0000 1.2
    @@ -60,6 +60,8 @@
    //
    // 0244 : Added Leonardo .UCF option
    //
    +// 28-Apr-2008 : Generate D for synchronous ROM in clocked process.
    +//

    #include <stdio.h>
    #include <string>
    @@ -704,17 +706,11 @@
    }
    else if (O == 's')
    {
    - printf("\n\tsignal A_r : std_logic_vector(%d downto 0);", aWidth - 1);
    printf("\nbegin");
    printf("\n\tprocess (Clk)");
    printf("\n\tbegin");
    printf("\n\t\tif Clk'event and Clk = '1' then");
    - printf("\n\t\t\tA_r <= A;");
    - printf("\n\t\tend if;");
    - printf("\n\tend process;");
    - printf("\n\tprocess (A_r)");
    - printf("\n\tbegin");
    - printf("\n\t\tcase to_integer(unsigned(A_r)) is");
    + printf("\n\t\tcase to_integer(unsigned(A)) is");
    }
    else
    {
    @@ -762,6 +758,8 @@
    {
    printf("\n\t\twhen others => D <= \"%s\";", strDC.c_str());
    printf("\n\t\tend case;");
    + if (O == 's')
    + printf("\n\tend if;");
    printf("\n\tend process;");
    }
    else



     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.