Skip to content
Snippets Groups Projects
Commit f14cbe8a authored by David Mapstone's avatar David Mapstone
Browse files

SOC1-124: Fixed SoCSim find path and added readme

parent 55fae46b
No related branches found
No related tags found
No related merge requests found
# 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.
......@@ -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
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment