Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pspin-osmosis
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Mikhail Khalilov
pspin-osmosis
Commits
4e3ab2d3
Commit
4e3ab2d3
authored
11 months ago
by
Mikhail Khalilov
Browse files
Options
Downloads
Patches
Plain Diff
update artifacts
parent
29e75dac
Branches
Branches containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitmodules
+1
-1
1 addition, 1 deletion
.gitmodules
Dockerfile
+6
-2
6 additions, 2 deletions
Dockerfile
README.md
+8
-15
8 additions, 15 deletions
README.md
pspin
+1
-1
1 addition, 1 deletion
pspin
with
16 additions
and
19 deletions
.gitmodules
+
1
−
1
View file @
4e3ab2d3
[submodule "pspin"]
path = pspin
url = https://github.com/
spcl
/pspin.git
url = https://github.com/
miharulidze
/pspin.git
This diff is collapsed.
Click to expand it.
Dockerfile
+
6
−
2
View file @
4e3ab2d3
...
...
@@ -5,10 +5,12 @@ SHELL ["/bin/bash", "-c"]
# Install prerequisites
RUN
apt update
-y
&&
\
apt
install
-y
curl git perl python python3 gengetopt
\
apt
install
-y
curl git perl python python3
python3-pip
gengetopt
\
make autoconf g++ flex bison ccache libgoogle-perftools-dev numactl
\
perl-doc libfl2 libfl-dev zlib1g zlib1g-dev gawk libncurses5 help2man
RUN
pip3
install
seaborn pandas numpy
# Build latest Verilator from sources
WORKDIR
/tools/
...
...
@@ -33,4 +35,6 @@ ENV RISCV_GCC_ROOT="/tools/riscv-gcc/"
RUN
curl
-L
-O
spclstorage.inf.ethz.ch/~digirols/pspin/riscv-gcc-ubuntu.tar.gz
&&
\
tar
-xf
/tools/riscv-gcc-ubuntu.tar.gz
-C
/tools/
&&
\
chmod
777
-R
${
RISCV_GCC_ROOT
}
&&
\
rm
/tools/riscv-gcc-ubuntu.tar.gz
\ No newline at end of file
rm
/tools/riscv-gcc-ubuntu.tar.gz
RUN
mkdir
/opt/pspin/examples/mt_apps/logs
This diff is collapsed.
Click to expand it.
README.md
+
8
−
15
View file @
4e3ab2d3
# PsPIN/OSMOSIS
## Running the code with Docker
## Verilator experiments
### Set up Docker container with the environment (15 min)
1)
`$ git clone git@spclgitlab.ethz.ch:mkhalilov/pspin-osmosis.git`
2)
`$ cd ./pspin-osmosis/ && git submodule update --init --recursive`
3)
`$ docker-compose up -d`
### Build simulation model (up to 1 hour)
4)
`$ docker ps # get the containerID`
5)
`$ docker exec -it <containerID> bash`
6)
`$ cd /opt/pspin/`
7)
```
$ cat sourceme-template.sh | \
sed "s%RISCV_GCC=%RISCV_GCC=/tools/riscv-gcc/bin/%g" | \
sed "s%PSPIN_HW=%PSPIN_HW=/opt/pspin/hw/%g" | \
sed "s%PSPIN_RT=%PSPIN_RT=/opt/pspin/sw%g" > sourceme.sh
```
8)
`$ source ./sourceme.sh`
9)
`$ cd ./hw/verilator_model/`
10)
`$ VERILATOR_COMPILER_WORKERS=$(nproc) make release`
11)
`$ cd ../../examples/empty/`
12)
`$ make deploy && make driver`
13)
`$ make run`
7)
`$ source ./sourceme.sh`
8)
`$ cd ./hw/verilator_model/`
9)
`$ VERILATOR_COMPILER_WORKERS=$(nproc) make release`
This diff is collapsed.
Click to expand it.
pspin
@
637e2c78
Subproject commit
bd0eee678038b63c513a1c588b0a21e6f6e3f3fb
Subproject commit
637e2c781f94299ba564354376f415cd2d372d71
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment