mirror of
https://github.com/aolofsson/oh.git
synced 2025-01-30 02:32:53 +08:00
Reorg cleanup
This commit is contained in:
parent
7094173ae9
commit
c3b83621e0
19
README.md
19
README.md
@ -56,9 +56,11 @@
|
|||||||
|
|
||||||
## How to simulate
|
## How to simulate
|
||||||
|
|
||||||
|
Scripts are located in the './scripts' directory.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
./scripts/build.sh gpio/dv/dut_gpio.v # compile gpio testbench (example)
|
./scripts/build.sh gpio/dv/dut_gpio.v # compile gpio testbench (example)
|
||||||
./scripts/sim.sh gpio/dv/tests/test_basic.emf # run a simulation with "test_regs.emf"
|
./scripts/sim.sh gpio/dv/tests/test_basic.emf # run "test_basic.emf" test
|
||||||
./scripts/view.sh # open the waveform with gtkwave
|
./scripts/view.sh # open the waveform with gtkwave
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -68,13 +70,14 @@
|
|||||||
* Runs test $name/dv/tests/test_basic.emf
|
* Runs test $name/dv/tests/test_basic.emf
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
./run.sh accelerator
|
./run.sh accelerator # Run accelerator simulation
|
||||||
./run.sh elink
|
./run.sh elink # Run elink simulation
|
||||||
./run.sh emailbox
|
./run.sh emailbox # Run emailbox simulation
|
||||||
./run.sh emmu
|
./run.sh emmu # Run emmu simulation
|
||||||
./run.sh gpio
|
./run.sh gpio # Run gpio simulation
|
||||||
./run.sh spi
|
./run.sh mio # run mio simulation
|
||||||
./run.sh pic
|
./run.sh spi # Run spi simulation
|
||||||
|
./run.sh pic # Run pic simulation
|
||||||
```
|
```
|
||||||
|
|
||||||
----
|
----
|
||||||
|
4
run.sh
4
run.sh
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
./build.sh $1/dv/dut_$1.v
|
./scripts/build.sh src/$1/dv/dut_$1.v
|
||||||
./sim.sh $1/dv/tests/test_basic.emf
|
./scripts/sim.sh src/$1/dv/tests/test_basic.emf
|
||||||
|
|
||||||
|
@ -2,9 +2,11 @@
|
|||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
# Icarus Verilog build script for OH!
|
# Icarus Verilog build script for OH!
|
||||||
|
#
|
||||||
# Requires $OH_HOME variable to be set
|
# Requires $OH_HOME variable to be set
|
||||||
# Input argument should be the "device under test". In general this
|
#
|
||||||
# would be something like "elink/hdl/dut_elink.v"
|
# Example: ./scripts/build.sh elink/hdl/dut_elink.v
|
||||||
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
DUT=$1
|
DUT=$1
|
||||||
@ -12,17 +14,8 @@ DUT=$1
|
|||||||
##############################
|
##############################
|
||||||
#Create directory of all links
|
#Create directory of all links
|
||||||
##############################
|
##############################
|
||||||
if [ -d "symlinks" ]
|
$OH_HOME/scripts/link.sh
|
||||||
then
|
|
||||||
rm -r symlinks
|
|
||||||
fi
|
|
||||||
mkdir -p $OH_HOME/symlinks/hdl
|
|
||||||
mkdir -p $OH_HOME/symlinks/dv
|
|
||||||
pushd $OH_HOME/symlinks/hdl > /dev/null
|
|
||||||
ln -s ../../*/hdl/*.{v,vh} .
|
|
||||||
cd ../dv
|
|
||||||
ln -s ../../*/dv/*.v .
|
|
||||||
popd > /dev/null
|
|
||||||
##############################
|
##############################
|
||||||
#Build
|
#Build
|
||||||
###############################
|
###############################
|
||||||
|
@ -6,7 +6,7 @@ list=(accelerator elink emailbox emmu gpio mio pic spi)
|
|||||||
for dut in ${list[*]}
|
for dut in ${list[*]}
|
||||||
do
|
do
|
||||||
echo "**Building $dut"
|
echo "**Building $dut"
|
||||||
./build.sh $dut/dv/dut_$dut.v
|
$OH_HOME/scripts/build.sh $OH_HOME/src/$dut/dv/dut_$dut.v
|
||||||
done
|
done
|
||||||
cd ../
|
cd ../
|
||||||
|
|
||||||
|
@ -10,8 +10,8 @@ fi
|
|||||||
mkdir -p $OH_HOME/symlinks/hdl
|
mkdir -p $OH_HOME/symlinks/hdl
|
||||||
mkdir -p $OH_HOME/symlinks/dv
|
mkdir -p $OH_HOME/symlinks/dv
|
||||||
pushd $OH_HOME/symlinks/hdl > /dev/null
|
pushd $OH_HOME/symlinks/hdl > /dev/null
|
||||||
ln -s ../../*/hdl/*.{v,vh} .
|
ln -s ../../src/*/hdl/*.{v,vh} .
|
||||||
cd ../dv
|
cd ../dv
|
||||||
ln -s ../../*/dv/*.v .
|
ln -s ../../src/*/dv/*.v .
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
||||||
|
@ -10,8 +10,8 @@ This folder contains a recommended reference flow for implementing chips using O
|
|||||||
* [Signoff](signoff/README.md)
|
* [Signoff](signoff/README.md)
|
||||||
|
|
||||||
## Other Resources
|
## Other Resources
|
||||||
* [Glossary](docs/glossary.md)
|
* [Glossary](../../docs/chip_glossary.md)
|
||||||
* [Constants](docs/constants.md)
|
* [Constants](../../docs/chip_constants.md)
|
||||||
|
|
||||||
## Required Shell Variables
|
## Required Shell Variables
|
||||||
|
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Loading…
x
Reference in New Issue
Block a user