@@ -14,33 +14,22 @@ With PyFPGA, you can create your own FPGA development workflow tailored to your
14
14
15
15
Some of its benefits are:
16
16
* It provides a unified API between tools/devices.
17
- * It's ** Version Control Systems** and ** Continuous Integration friendly ** .
17
+ * It's ** Version Control Systems** and ** Continuous Integration** friendly .
18
18
* It ensures reproducibility and repeatability.
19
19
* It consumes fewer system resources than GUI-based workflows.
20
20
21
21
## Basic example
22
22
23
23
``` py
24
- from fpga import Project
24
+ from pyfpga import Vivado
25
25
26
- # Specify the backend tool and an optional project name
27
- prj = Project(' vivado' , ' example' )
28
-
29
- # Set the device/part
26
+ prj = Vivado(' example' )
30
27
prj.set_part(' xc7z010-1-clg400' )
31
-
32
- # Add HDL sources to the project
33
- prj.add_files(' location1/*.v' )
34
- prj.add_files(' location2/top.v' )
35
-
36
- # Optionally add constraint files to the project
37
- prj.add_files(' location3/example.xdc' )
38
-
39
- # Set the top-level unit name
28
+ prj.add_vlog(' location1/*.v' )
29
+ prj.add_vlog(' location2/top.v' )
30
+ prj.add_constraint(' location3/example.xdc' )
40
31
prj.set_top(' Top' )
41
-
42
- # Generate the bitstream running the tool
43
- prj.generate()
32
+ prj.make()
44
33
```
45
34
46
35
The next steps are to read the [ docs] ( https://pyfpga.github.io/pyfpga ) or take a look at [ examples] ( examples ) .
@@ -54,11 +43,11 @@ For a comprehensive list of supported tools, features and limitations, please re
54
43
55
44
> ** NOTE:**
56
45
> PyFPGA assumes that the underlying tools required for operation are ready to be executed from the running terminal.
57
- > This includes having the tools installed, properly configured, and licensed (when needed).
46
+ > This includes having the tools installed, properly configured and licensed (when needed).
58
47
59
48
## Installation
60
49
61
- PyFPGA requires Python>=3.7 .
50
+ PyFPGA requires Python>=3.8 .
62
51
63
52
At the moment, it's only available as a git repository hosted on GitHub. It can be installed with pip:
64
53
0 commit comments