... | ... | @@ -9,33 +9,29 @@ |
|
|
Install Xilinx Vivado on your computer or use laboratory computers in some laboratory at Departent of Control Engineering (select Debian Bullseye distribution). You can access [laboratories remotely](https://support.dce.felk.cvut.cz/mediawiki/index.php/Hlavn%C3%AD_strana) as well.
|
|
|
|
|
|
When you have Xilinx Vivado installed, setup search PATH and other components for given shell environment
|
|
|
|
|
|
```
|
|
|
. /opt/xilinx/vivado-2018.2/Vivado/2018.2/settings64.sh
|
|
|
```
|
|
|
|
|
|
The dot before path to the command is really mandatory, it runs shell command in actual shell and leaves PATH and other environment variables setup correctly.
|
|
|
|
|
|
## Build of MZ_APO Design for B35APO a M/B35PSR
|
|
|
|
|
|
Clone the peripherals design project [repository](https://gitlab.fel.cvut.cz/canbus/zynq/zynq-can-sja1000-top/)
|
|
|
|
|
|
```
|
|
|
git clone https://gitlab.fel.cvut.cz/canbus/zynq/zynq-can-sja1000-top.git
|
|
|
cd zynq-can-sja1000-top
|
|
|
```
|
|
|
|
|
|
Switch to desired branch
|
|
|
|
|
|
```
|
|
|
git checkout microzed-2dc
|
|
|
```
|
|
|
|
|
|
and build the design (Vivado environment has to be setup, see the steps above)
|
|
|
|
|
|
and recreate Vivado system project for the design (Vivado environment has to be setup, see the steps above)
|
|
|
```
|
|
|
make system_project
|
|
|
```
|
|
|
This steps prepares file `system/project/canbench.xpr` which represents the project which can be open, explored, modified build from Vivado graphics environment. Build from command-line is provided for our project as well
|
|
|
```
|
|
|
make system/system.hdf
|
|
|
```
|
|
|
|
|
|
Be prepared that build takes a while (up to 20 minutes, depends on hardware).
|
|
|
|