forked from WhiteWLf-dev/utopia-eda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
59 lines (44 loc) · 1.51 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
### Requirements
The list of tools required to build the project:
* `cmake` 3.13+
* `flex`
* `bison`
* `clang-tidy`
* `zlib1g-dev`
* C++17-compatible compiler (e.g, `gcc` or `clang`)
* CMake-supported "build" system (e.g., `make` or `ninja`)
### Coding Style
We use [LLVM Coding Conventions](https://llvm.org/docs/CodingStandards.html) with some project-specific refinements.
### Compiling from Command Line
```
cmake -S . -B build # -G Ninja etc.
cd build
make # ninja, etc.
```
### Configuring with `yosys`
1. Get `yosys` source code from the [^yosys] into `<yosys-dir>`
2. Make sure your system meets the requirements listed in `<yosys-dir>/README.md`
3. Edit `<yosys-dir>/Makefile`
- set `ENABLE_LIBYOSYS` to 1
4. Configure and build `yosys` as described in the `<yosys-dir>/README.md`
5. Configure `Utopia` to find `yosys`
- add `-DYosys_ROOT=<yosys-dir>` to the `cmake` invocation
- e.g. `cmake -S <utopia-source-dir> -B <utopia-build-dir> -DYosys_ROOT=<yosys-dir>`
[^yosys]: https://github.com/YosysHQ/yosys
### Running from Command Line
To list all options for the Utopia EDA do the following:
```
<build-dir>/src/umain -h
```
To run Utopia EDA as a logic synthesis tool for the specified RIL description,
do the following:
```
<build-dir>/src/umain rtl <path-to-input-RIL-file>
```
### Running Tests
Running applications and tests based on `libueda` requires environment variable
`UTOPIA_HOME` to contain the path to the source code directory.
```
export UTOPIA_HOME=<utopia-source-dir>
<build-dir>/test/utest
```