OpenCores
URL https://opencores.org/ocsvn/zap/zap/trunk

Subversion Repositories zap

[/] [zap/] [trunk/] [src/] [scripts/] [run_sim.pl] - Diff between revs 34 and 38

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 34 Rev 38
Line 7... Line 7...
scripts and programs.
scripts and programs.
 
 
Usage :
Usage :
perl run_sim.pl
perl run_sim.pl
+test+<test_case>           -- Run a specific test case.
+test+<test_case>           -- Run a specific test case.
 
+irq_en                     -- Configure TB to use IRQ.
 
 
###############################################################################
###############################################################################
";
";
 
 
use strict;
use strict;
Line 28... Line 29...
my $DUMP_SIZE                   = $Config{'DUMP_SIZE'};
my $DUMP_SIZE                   = $Config{'DUMP_SIZE'};
my $MAX_CLOCK_CYCLES            = $Config{'MAX_CLOCK_CYCLES'};
my $MAX_CLOCK_CYCLES            = $Config{'MAX_CLOCK_CYCLES'};
my $TLB_DEBUG                   = $Config{'DEFINE_TLB_DEBUG'};
my $TLB_DEBUG                   = $Config{'DEFINE_TLB_DEBUG'};
my $STALL                       = $Config{'ALLOW_STALLS'};
my $STALL                       = $Config{'ALLOW_STALLS'};
my $TX_TERM                     = $Config{'UART_TX_TERMINAL'};
my $TX_TERM                     = $Config{'UART_TX_TERMINAL'};
 
my $IRQ_EN                      = $Config{'IRQ_EN'};
 
 
# System configuration.
# System configuration.
my $DATA_CACHE_SIZE             = $Config{'DATA_CACHE_SIZE'};
my $DATA_CACHE_SIZE             = $Config{'DATA_CACHE_SIZE'};
my $CODE_CACHE_SIZE             = $Config{'CODE_CACHE_SIZE'};
my $CODE_CACHE_SIZE             = $Config{'CODE_CACHE_SIZE'};
my $CODE_SECTION_TLB_ENTRIES    = $Config{'CODE_SECTION_TLB_ENTRIES'};
my $CODE_SECTION_TLB_ENTRIES    = $Config{'CODE_SECTION_TLB_ENTRIES'};
Line 46... Line 48...
 
 
# Leave this as is.
# Leave this as is.
my $ZAP_HOME                    = "../../../";
my $ZAP_HOME                    = "../../../";
my $TEST                        = "null";
my $TEST                        = "null";
my $SCRATCH                     = "/dev/null";
my $SCRATCH                     = "/dev/null";
my $IRQ_EN                      = 0;
 
my $FIQ_EN                      = 0;
my $FIQ_EN                      = 0;
 
 
if ( $SEED == -1 ) {
if ( $SEED == -1 ) {
                $SEED = randSeed();
                $SEED = randSeed();
}
}
Line 106... Line 107...
$IVL_OPTIONS .= " -Pzap_test.DATA_LPAGE_TLB_ENTRIES=$DATA_LPAGE_TLB_ENTRIES -Pzap_test.DATA_SPAGE_TLB_ENTRIES=$DATA_SPAGE_TLB_ENTRIES -Pzap_test.DATA_CACHE_SIZE=$DATA_CACHE_SIZE ";
$IVL_OPTIONS .= " -Pzap_test.DATA_LPAGE_TLB_ENTRIES=$DATA_LPAGE_TLB_ENTRIES -Pzap_test.DATA_SPAGE_TLB_ENTRIES=$DATA_SPAGE_TLB_ENTRIES -Pzap_test.DATA_CACHE_SIZE=$DATA_CACHE_SIZE ";
$IVL_OPTIONS .= " -Pzap_test.CODE_SECTION_TLB_ENTRIES=$CODE_SECTION_TLB_ENTRIES -Pzap_test.CODE_LPAGE_TLB_ENTRIES=$CODE_LPAGE_TLB_ENTRIES -Pzap_test.CODE_SPAGE_TLB_ENTRIES=$CODE_SPAGE_TLB_ENTRIES ";
$IVL_OPTIONS .= " -Pzap_test.CODE_SECTION_TLB_ENTRIES=$CODE_SECTION_TLB_ENTRIES -Pzap_test.CODE_LPAGE_TLB_ENTRIES=$CODE_LPAGE_TLB_ENTRIES -Pzap_test.CODE_SPAGE_TLB_ENTRIES=$CODE_SPAGE_TLB_ENTRIES ";
$IVL_OPTIONS .= " -Pzap_test.CODE_CACHE_SIZE=$CODE_CACHE_SIZE ";
$IVL_OPTIONS .= " -Pzap_test.CODE_CACHE_SIZE=$CODE_CACHE_SIZE ";
$IVL_OPTIONS .= "-DMAX_CLOCK_CYCLES=$MAX_CLOCK_CYCLES ";
$IVL_OPTIONS .= "-DMAX_CLOCK_CYCLES=$MAX_CLOCK_CYCLES ";
 
 
if ( $IRQ_EN )          {        $IVL_OPTIONS .= "-DIRQ_EN ";   }
if ( $IRQ_EN )          {        print "Script: IRQ defined.\n" ; $IVL_OPTIONS .= "-DIRQ_EN ";   }
if ( $FIQ_EN )          {        $IVL_OPTIONS .= "-DFIQ_EN ";   }
if ( $FIQ_EN )          {        $IVL_OPTIONS .= "-DFIQ_EN ";   }
if ( $STALL )           {        $IVL_OPTIONS .= "-DSTALL ";    }
if ( $STALL )           {        print "Script: Stall defined.\n" ; $IVL_OPTIONS .= "-DSTALL ";    }
if ( $SYNTHESIS )       {        $IVL_OPTIONS .= "-DSYNTHESIS ";}
if ( $SYNTHESIS )       {        $IVL_OPTIONS .= "-DSYNTHESIS ";}
 
 
if ( $MAX_CLOCK_CYCLES == 0 )   {  die "*E: MAX_CLOCK_CYCLES set to 0. Ending script...";  }
if ( $MAX_CLOCK_CYCLES == 0 )   {  die "*E: MAX_CLOCK_CYCLES set to 0. Ending script...";  }
if ( $TLB_DEBUG )               {  print "Warning: TLB_DEBUG defined. Do not use for unattended systems!"; $IVL_OPTIONS .= "-DTLB_DEBUG ";}
if ( $TLB_DEBUG )               {  print "Warning: TLB_DEBUG defined. Do not use for unattended systems!"; $IVL_OPTIONS .= "-DTLB_DEBUG ";}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2022 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.