Skip to content

Commit afda989

Browse files
committed
do a pass over all the docs
1 parent 53bb0f2 commit afda989

File tree

4 files changed

+19
-14
lines changed

4 files changed

+19
-14
lines changed

doc/hardware.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ This will produce a file `CharacterizePC.log` with the results.
7575
Completing the characterization will take some time depending on the range of
7676
parameters.
7777
To change the range of parameters for characterization, see the
78-
`makeParamSpace` functions under `CharacterizeMain`.
78+
`makeParamSpace` functions under `CharacterizeMain` in `src/main/scala/MainCharacterize.scala`.

doc/platforms.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Platforms, Build and Deployment
22

3+
BISMO assumes that the hardware design and supporting files are first prepared
4+
on a *host*, and then deployed on a *target*. These may be the same computer in
5+
some cases.
6+
37
## Deployment
48

59
In general, each supported platform may do deployment slightly differently,
@@ -11,6 +15,10 @@ but all current BISMO platforms do this in a similar manner:
1115
4. User flashes the bitfile
1216
5. User runs the test application (or their own application)
1317

18+
All generated files during build are placed under a directory whose path
19+
reflects the current platform and configuration, see `BUILD_DIR` in Makefile
20+
variables below. The deployment folder is generated at `$BUILD_DIR/deploy`.
21+
1422
## Useful Make targets and variables
1523

1624
BISMO involves a somewhat complex hardware-software build, which is currently managed using the top-level `Makefile`. Below are some of the useful variables and targets.
@@ -26,6 +34,7 @@ BISMO involves a somewhat complex hardware-software build, which is currently ma
2634
| `N` | RHS parallelism for overlay; see Dn in BISMO paper | 2 |
2735
| `LMEM` | Number of entries in LHS memory; see Bm in BISMO paper | 1024 |
2836
| `RMEM` | Number of entries in RHS memory; see Bn in BISMO paper | 1024 |
37+
| `BUILD_DIR` | Build directory for current BISMO instance | build/$(OVERLAY_CFG)/$(PLATFORM) |
2938

3039
### Make targets
3140

doc/software.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,14 @@ available (determined by the platform) will also limit the maximum size.
6767

6868
## Under the Hood
6969

70+
This section is quite thin on content at the moment, contributions are welcome!
7071

72+
### The runtime
73+
74+
The runtime is spread across several files under
75+
`src/main/resources/lib/` all prefixed with `bismo_rt_`. Most of the runtime
76+
is a thin wrapper around the functionality already provided by the low-level
77+
driver, plus some "added value" for instrumentation and data movement.
7178

7279
### The low-level driver
7380

@@ -83,15 +90,4 @@ One level under this low-level driver is the register driver
8390
`BitSerialMatMulAccel.hpp` which is generated automatically by
8491
[fpga-tidbits
8592
PlatformWrapper](https://github.com/maltanar/fpga-tidbits/wiki/platformwrapper).
86-
87-
88-
89-
BISMO overlays are programmable via the instructions listed in the paper,
90-
although full compiler support is lacking at this point.
91-
A rudimentary software stack can be found under `src/main/cpp/app`, which
92-
consists of the following:
93-
94-
95-
96-
* `BISMOTests.hpp` contains the top-level test code, which also serve as
97-
usage examples. It uses `BitSerialMatMulExecutor` calls.
93+
You can find this file under `$BUILD_DIR/hw/driver`.

doc/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ indicating which mode to run in:
1313
* `i` to run interactive benchmarking
1414
* `b` to run batch-mode benchmarking
1515

16-
## More (unit) tests
16+
## Unit tests
1717
Besides the top-level BISMO test described here, there are several
1818
other tests available for BISMO components under `src/test`.
1919
See [here](src/test/scala) for more on the pure Scala/Chisel tests, and

0 commit comments

Comments
 (0)