forked from ucb-bar/asyncqueue
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimport.sh
More file actions
executable file
·22 lines (18 loc) · 755 Bytes
/
import.sh
File metadata and controls
executable file
·22 lines (18 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# Helper script to update this from master rocket-chip.
set -ex
#rm -rf rocket-chip
#git clone https://github.com/freechipsproject/rocket-chip.git --depth 1
cd rocket-chip
git rev-parse HEAD > rocket-chip-revision.txt
mv rocket-chip-revision.txt ..
cd ..
cp rocket-chip/src/main/scala/util/AsyncQueue.scala src/main/scala
cp rocket-chip/src/main/scala/util/Crossing.scala src/main/scala
cp rocket-chip/src/main/scala/util/ShiftReg.scala src/main/scala
cp rocket-chip/src/main/scala/util/AsyncResetReg.scala src/main/scala
mkdir -p src/main/resources/vsrc
cp rocket-chip/src/main/resources/vsrc/AsyncResetReg.v src/main/resources/vsrc/
pushd src/main/scala
sed -i "s/package freechips.rocketchip.util/package freechips.asyncqueue/g" *
popd