diff --git a/README.md b/README.md index 047477fada6dee5cfef7f84ec759732b35445f2f..669cc3203d1c1328feb65e87a17cb090ffbae9f4 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,12 @@ -# Sample GitLab Project +# SoCSim -This sample project shows how a project in GitLab looks for demonstration purposes. It contains issues, merge requests and Markdown files in many branches, -named and filled with lorem ipsum. +SoCSim is a very basic simulation framework which allows for easy running of simulation scripts. +Scripts can be located in the simulate/socsim directory of any repository or subrepository of a project. -You can look around to get an idea how to structure your project and, when done, you can safely delete this project. +By using the +``` +$ socsim $simulation_script +``` +command, you can easily run your simulation scripts. This is done by socsim looking over a searchpath of socsim directories in your design project. -[Learn more about creating GitLab projects.](https://docs.gitlab.com/ee/gitlab-basics/create-project.html) +These scripts can call any simulator or external simulation flow and should make simulation management easier. diff --git a/flow/socsim b/flow/socsim index 890bbc3f4d484e334603f602a87d7c878d0746f8..43e0ebd947d1015c7549990cd74abd66621694ab 100755 --- a/flow/socsim +++ b/flow/socsim @@ -18,7 +18,7 @@ fi # $SOC_TOP_DIR"/flow/simulators/"$SIMULATOR"_sim.sh" $@ # Find a simulation script in the SoCSim environments of all subrepos -simscript=$(find -E ${SOCSIM_PATH//:/\/} -name "${1}.sh") +simscript=$(find ${SOCSIM_PATH//:/\ } -name "${1}.sh") # Run Script if Found $simscript $@ \ No newline at end of file diff --git a/set_env.sh b/set_env.sh index 62d45338584c4c80adf3c29e8808d62664a8a1a9..b85e7e7b00d97f87f52b9a3418bdec479b9e7613 100644 --- a/set_env.sh +++ b/set_env.sh @@ -49,6 +49,7 @@ else # SoCSim Specific # Source environment variables for all submodules + SOCSIM_PATH="$DESIGN_ROOT/simulate/socsim" for d in $DESIGN_ROOT/* ; do if [ -f "$d/.git" ]; then if [ -d "$d/simulate/socsim" ]; then