LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Job Opportunity
  •  
    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: Sat Jun 24 02:52:25 CEST 2006
    Subject: [cvs-checkins] MODIFIED: t48 ...
    Top
    Date: 00/06/06 24:02:52

    Modified: t48/sw run_regression.pl
    Log:
    include t8048 and t8039 testbenches




    Revision Changes Path
    1.10 t48/sw/run_regression.pl

    http://www.opencores.org/cvsweb.shtml/t48/sw/run_regression.pl.diff?r1=1.9&r2=1.10

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

    Index: run_regression.pl
    ===================================================================
    RCS file: /cvsroot/arniml/t48/sw/run_regression.pl,v
    retrieving revision 1.9
    retrieving revision 1.10
    diff -u -b -r1.9 -r1.10
    --- run_regression.pl 21 Jun 2006 01:05:34 -0000 1.9
    +++ run_regression.pl 24 Jun 2006 00:52:24 -0000 1.10
    @@ -4,7 +4,7 @@
    #
    # run_regression.pl
    #
    -# $Id: run_regression.pl,v 1.9 2006/06/21 01:05:34 arniml Exp $
    +# $Id: run_regression.pl,v 1.10 2006/06/24 00:52:24 arniml Exp $
    #
    # Copyright (c) 2004, Arnim Laeuger (arniml@o...)
    #
    @@ -54,12 +54,17 @@
    # Commands to call the different VHDL simulators.
    #
    # GHDL
    -my $ghdl_simulator = './tb_behav_c0 --assert-level=error';
    -my $ghdl_simulator_vcd = $ghdl_simulator.' --vcd=temp.vcd';
    +my %ghdl_simulators = ('gen' => './tb_behav_c0',
    + 't48' => './tb_t8048_behav_c0',
    + 't39' => './tb_t8039_behav_c0');
    +my $ghdl_simulator_opt = '--assert-level=error --stop-time=20ms';
    +my $ghdl_simulator_vcd = './tb_behav_c0 --assert-level=error --vcd=temp.vcd';
    #
    # Choose simulator:
    -my $vhdl_simulator = $ghdl_simulator;
    +my %vhdl_simulators = %ghdl_simulators;
    +my $vhdl_simulator_opt = $ghdl_simulator_opt;
    my $vhdl_simulator_vcd = $ghdl_simulator_vcd;
    +my ($vhdl_simulator_tag, $vhdl_simulator);
    #
    ##############################################################################

    @@ -99,15 +104,14 @@

    $dump_compare_cell = -e 'no_dump_compare' ? 0 : $dump_compare;

    - system('rm -f $SIM_DIR/t48_rom.hex');
    + system('rm -f $SIM_DIR/*.hex');
    system('make -f $VERIF_DIR/include/Makefile.cell clean');
    system('make -f $VERIF_DIR/include/Makefile.cell all clean');
    if ($? == 0) {
    chdir($ENV{'SIM_DIR'});
    -# system('sh', '-c', 'ls -l t48_rom.hex');
    - system($dump_compare_cell > 0 ? $vhdl_simulator_vcd : $vhdl_simulator);

    if ($dump_compare_cell) {
    + system($vhdl_simulator_vcd);
    system('rm -f dump sim.dump vhdl.dump');
    system('vcd2vec.pl -s ../../sw/dump_compare.signals < temp.vcd | vec2dump.pl > vhdl.dump');
    system('i8039 -f t48_rom.hex -x t48_ext_rom.hex -d > dump');
    @@ -122,6 +126,14 @@
    system('rm -f dump sim.dump vhdl.dump temp.vcd');
    } elsif ($dump_compare) {
    print("Dump Compare: Excluded\n");
    + } else {
    + # run all enabled simulators
    + while (($vhdl_simulator_tag, $vhdl_simulator) = each %vhdl_simulators) {
    + if (! -e "$cell_dir/no_$vhdl_simulator_tag") {
    + print("Executing simulator $vhdl_simulator_tag\n");
    + system($vhdl_simulator." ".$vhdl_simulator_opt);
    + }
    + }
    }

    } else {



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