Ignore:
Timestamp:
Mar 27, 2008, 11:04:49 AM (17 years ago)
Author:
rosiere
Message:

Add :

  • Execute_loop (must be test systemC)
  • Prediction
    • Direction : predifined scheme
    • Branch Target Buffer
  • iFetch_unit
    • ifetch_queue
    • pc management
  • Decod_unit
    • coming soon : support for custom operation
  • Rename_unit
    • RAT
    • Free_list
    • Dependence RAW check
    • Load store unit pointer
  • New Environnement (hierarchy_memory will remove in a next version)


Modif :

  • Manage Custom Operation
  • All component in execute_loop to use the new statistics management

Not Finish :

  • Return Address Stack
  • Environnement
Location:
trunk/IPs/systemC/processor/Morpheo/Script
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Script/execute.sh

    r2 r78  
    77declare    FILE_CPT=;
    88declare    FILE_CPU=;
    9 declare    LOCK_CPT="$HOME/.lock-cpt";
    10 declare    LOCK_CPU="$HOME/.lock-cpu";
    11    
     9declare    LOCK_CPT="${HOME}/.lock-cpt";
     10declare    LOCK_CPU="${HOME}/.lock-cpu";
     11
    1212#-----[ lock ]----------------------------------------------
    1313function lock ()
  • trunk/IPs/systemC/processor/Morpheo/Script/execute_n.sh

    r2 r78  
    88declare    FILE_CPT;
    99declare    FILE_CPU;
    10 declare    ID="cpu-$HOSTNAME-$$"
     10declare    ID="cpu-${HOSTNAME}-$$"
    1111
    1212#-----[ usage ]---------------------------------------------
    1313function usage ()
    1414{
    15     echo "Usage : $0 file [ nb_process ]";
    16     echo "      * file       : list of command";
    17     echo "      * nb_process : number of process (default (and maximum) is the number of processor)";
     15    echo "Usage     : $0 file [ nb_process ]";
     16    echo "Arguments : ";
     17    echo " * file       : list of command";
     18    echo " * nb_process : number of process (default (and maximum) is the number of processor)";
    1819    echo "";
    19     echo "Note  - This script, for each command, create a directory : Task_X (X is the number of command), and execute the command in this directory.";
    20     echo "      - Two file is generate : \"output\" is the output of the execution, and \"command\" is the command lunch.";
    21     echo "      - A command empty (no command on a line of file1) is a synchronisation with all process"
    22     echo "      - Don't forgot the final end of line (else the last command is not executed";
     20    echo "Note      : ";
     21    echo " * This script, for each command, create a directory : Task_X (X is the number of command), and execute the command in this directory.";
     22    echo " * Two file is generate : \"output\" is the output of the execution, and \"command\" is the command lunch.";
     23    echo " * A command empty (no command on a line of file) is a synchronisation with all process"
     24    echo " * Don't forgot the final end of line (else the last command is not executed";
    2325    echo "";
    2426    exit;
     
    3032    local FILE_CPUINFO=/proc/cpuinfo;
    3133    if test ! -f $FILE_CPUINFO; then
    32         echo "\"$FILE_CPUINFO\" don't exist."
     34        echo "\"${FILE_CPUINFO}\" don't exist."
    3335        usage;
    3436    fi;
    3537
    36     eval "$1=`grep -c \"processor\" $FILE_CPUINFO`";
     38    eval "$1=`grep -c \"processor\" ${FILE_CPUINFO}`";
    3739}
    3840
  • trunk/IPs/systemC/processor/Morpheo/Script/lock.sh

    r2 r78  
    44function usage ()
    55{
    6     echo "Usage   : ${0} file";
    7     echo "lock file, you can see the lock at \"~/.$(basename file).lock\""
     6    echo "Usage     : ${0} file";
     7    echo "Arguments : ";
     8    echo ' * file : you can see the lock at "${MORPHEO_HOME}/lock/$(basename file).lock"';
     9    echo "Notes     :";
     10    echo " * Morpheo's environnement must be positionned.";
     11
    812    exit;
    913}
     
    1822function main ()
    1923{
    20     if test ${#} -ne 1 -o ! -f ${1}; then
     24    LOCK_DIRECTORY="${MORPHEO_HOME}/lock";
     25
     26    if test ${#} -ne 1 -o -z ${MORPHEO_HOME} -o ! -d ${LOCK_DIRECTORY}; then
    2127        usage ${*};
    2228    fi;
    2329
    24     lock "${HOME}/.$(basename ${1}).lock"
     30    lock "${LOCK_DIRECTORY}/$(basename ${1}).lock"
    2531}
    2632
  • trunk/IPs/systemC/processor/Morpheo/Script/log_trace.pl

    r2 r78  
    2020sub usage()
    2121{
    22     print "usage : $0 rob_trace_file nm_file\n";
    23     print "      * rob_trace_file : Trace file generate by simulation\n";
    24     print "      * nm_file        : List of symbol (generate by nm)\n";
     22    print "Usage     : $0 rob_trace_file nm_file\n";
     23    print "Arguments : ";
     24    print " * rob_trace_file : Trace file generate by simulation\n";
     25    print " * nm_file        : List of symbol (generate by nm)\n";
    2526    exit(1);
    2627}
  • trunk/IPs/systemC/processor/Morpheo/Script/range.sh

    r57 r78  
    44function usage ()
    55{
    6     echo "Usage   : $0 min max [step [iter]]";
     6    echo "Usage     : ${0} min max [step [iter]]";
     7    echo "Arguments : ";
    78    echo " * min  : value minimal";
    89    echo " * max  : value maximal";
     
    1516function range ()
    1617{
    17     declare a=$1;
    18     declare b=$2;
    19     declare step=$3;
     18    declare a=${1};
     19    declare b=${2};
     20    declare step=${3};
    2021
    21     while test $a -lt $b; do
    22         echo $a;
    23         a=$(($a $step));
     22    while test ${a} -lt ${b}; do
     23        echo ${a};
     24        a=$((${a} ${step}));
    2425    done
    2526
    26     if test $a -eq $b; then
    27         echo $a;
     27    if test ${a} -eq ${b}; then
     28        echo ${a};
    2829    fi;
    2930}
     
    3233function range_max ()
    3334{
    34     declare a=$1;
    35     declare b=$2;
    36     declare step=$3;
    37     declare iter=$4;
     35    declare a=${1};
     36    declare b=${2};
     37    declare step=${3};
     38    declare iter=${4};
    3839
    39     while test $a -lt $b -a $iter -gt 1; do
    40         a=$(($a $step));
    41         iter=$(($iter-1));
     40    while test ${a} -lt ${b} -a ${iter} -gt 1; do
     41        a=$((${a} ${step}));
     42        iter=$((${iter}-1));
    4243    done;
    4344
    44     if test $a -eq $b; then
    45         echo $a;
     45    if test ${a} -eq ${b}; then
     46        echo ${a};
    4647    fi;
    4748
    48     if test $iter -eq 1; then
    49         echo $a;
     49    if test ${iter} -eq 1; then
     50        echo ${a};
    5051    fi;
    5152}
     
    5556{
    5657    # create operande
    57     case $# in
    58         2) range $* "+1";;
    59         3) range $*     ;;
    60         4) range_max $* ;;
    61         *) usage $*
     58    case ${#} in
     59        2) range ${*} "+1";;
     60        3) range ${*}     ;;
     61        4) range_max ${*} ;;
     62        *) usage ${*}
    6263    esac
    6364}
    6465
    6566#-----[ Corps ]---------------------------------------------
    66 main $*
     67main ${*}
  • trunk/IPs/systemC/processor/Morpheo/Script/unlock.sh

    r2 r78  
    44function usage ()
    55{
    6     echo "Usage   : ${0} file";
    7     echo "unlock file, you can see the lock at \"~/.$(basename file).lock\""
     6    echo "Usage     : ${0} file";
     7    echo "Arguments : ";
     8    echo ' * file : you can see the lock at "${MORPHEO_HOME}/lock/$(basename file).lock"';
     9    echo "Notes     :";
     10    echo " * Morpheo's environnement must be positionned.";
     11
    812    exit;
    913}
     
    1822function main ()
    1923{
    20     if test ${#} -ne 1 -o ! -f ${1}; then
     24    LOCK_DIRECTORY="${MORPHEO_HOME}/lock";
     25
     26    if test ${#} -ne 1 -o -z ${MORPHEO_HOME} -o ! -d ${LOCK_DIRECTORY}; then
    2127        usage ${*};
    2228    fi;
    2329
    24     unlock "${HOME}/.$(basename ${1}).lock"
     30    unlock "${LOCK_DIRECTORY}/$(basename ${1}).lock"
    2531}
    2632
  • trunk/IPs/systemC/processor/Morpheo/Script/xilinx_extract_info.sh

    r71 r78  
    22
    33for i in *.fpga.log; do
    4 
    54    echo "===== $i";
    65    grep "Number of Slice Registers" $i;
Note: See TracChangeset for help on using the changeset viewer.