diff --git a/.DS_Store b/.DS_Store index 617ce0426920c16bba8d96c7d48c2a8973b5490f..e1c15d6eb38b3cc5e2fbbc2cb054ddb3c8dd2033 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 43e33e6ae2f2ebdefbefb5c5363f6bb2235a1b67..0000000000000000000000000000000000000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "workbench.colorCustomizations": { - "activityBar.background": "#00360F", - "titleBar.activeBackground": "#004C16", - "titleBar.activeForeground": "#EDFFF2" - } -} \ No newline at end of file diff --git a/flow/simulators/ivlog_sim.sh b/flow/simulators/ivlog_sim.sh index 674d71ecca3550cc0005a66fc2ef877bc747fa63..cf3859b29d48b39e45ed9dd72330e72d806ac916 100755 --- a/flow/simulators/ivlog_sim.sh +++ b/flow/simulators/ivlog_sim.sh @@ -11,6 +11,6 @@ #!/usr/bin/env bash -mkdir -p $SOC_TOP/simulate/sim/ -iverilog -I $SOC_TOP/hdl/verif/ -I $SOC_TOP/hdl/src/ -g2012 -o $SOC_TOP/simulate/sim/$1.vvp $SOC_TOP/hdl/verif/tb_$1.sv -cd $SOC_TOP/simulate/sim/ && vvp $1.vvp $2 \ No newline at end of file +mkdir -p $SOC_TOP_DIR/simulate/sim/ +iverilog -I $SOC_TOP_DIR/hdl/verif/ -I $SOC_TOP_DIR/hdl/src/ -g2012 -o $SOC_TOP_DIR/simulate/sim/$1.vvp $SOC_TOP_DIR/hdl/verif/tb_$1.sv +cd $SOC_TOP_DIR/simulate/sim/ && vvp $1.vvp $2 \ No newline at end of file diff --git a/flow/socsim b/flow/socsim index 42c6196bc101419a6a108eba4865be67a760d076..4b2d7f1bc9db2453e218a5bc01beaee19b3248c0 100755 --- a/flow/socsim +++ b/flow/socsim @@ -15,4 +15,4 @@ DEFAULT_SIMULATOR="ivlog" if [[ -z "${SIMULATOR}" ]]; then SIMULATOR=$DEFAULT_SIMULATOR fi -$SOC_TOP"/flow/simulators/"$SIMULATOR"_sim.sh" $@ +$SOC_TOP_DIR"/flow/simulators/"$SIMULATOR"_sim.sh" $@ diff --git a/set_env.sh b/set_env.sh index c857946840b7956c9c0e1b447a2ab110223209b7..150ddac006011d1dafbd0281919140295441f598 100755 --- a/set_env.sh +++ b/set_env.sh @@ -10,34 +10,41 @@ #----------------------------------------------------------------------------- #!/bin/bash -# Get Root Location of Repository +# Get Root Location of Design Structure if [ -z $DESIGN_ROOT ]; then # If $DESIGN_ROOT hasn't been set yet DESIGN_ROOT=`git rev-parse --show-superproject-working-tree` + if [ -z $DESIGN_ROOT ]; then - # If not in a submodule + # If not in a submodule - at root DESIGN_ROOT=`git rev-parse --show-toplevel` fi -fi -# Set Environment Variable for this Repository -export ACC_ENGINE_DIR="$( cd -- "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 ; pwd -P )" -echo $ACC_ENGINE_DIR -# If this Repo is root of workspace -if [ $ACC_ENGINE_DIR = $DESIGN_ROOT ]; then - echo "Design Workspace: $ACC_ENGINE_DIR" - export DESIGN_ROOT -fi + # Source Top-Level Sourceme + source $DESIGN_ROOT/set_env.sh +else + # Set Environment Variable for this Repository + export ACC_ENGINE_DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" -# Source environment variables for all submodules -for d in $ACC_ENGINE_DIR/* ; do - if [ -f "$d/.git" ]; then - if [ -f "$d/set_env.sh" ]; then - # If .git file exists - submodule - source $d/set_env.sh - fi + # If this Repo is root of workspace + if [ $ACC_ENGINE_DIR = $DESIGN_ROOT ]; then + echo "Design Workspace: $DESIGN_ROOT" + export DESIGN_ROOT + # Set Default Simulator + export SIMULATOR="ivlog" fi -done -# Add Flow directory to Path -export PATH="$PATH:/$ACC_ENGINE_DIR/flow" \ No newline at end of file + # Source environment variables for all submodules + for d in $ACC_ENGINE_DIR/* ; do + if [ -f "$d/.git" ]; then + if [ -f "$d/set_env.sh" ]; then + # If .git file exists - submodule + source $d/set_env.sh + fi + fi + done + + # Add Scripts to Path + export PATH="$PATH:/$ACC_ENGINE_DIR/flow" +fi +