aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/docs/usrp2/build_instructions.md
blob: 07c096d45a553c351bf2f6538905311e45c28431 (plain)
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
# Generation 2 USRP Build Documentation

## Dependencies and Requirements

### Dependencies

The USRP FPGA build system requires a UNIX-like environment with the following dependencies

- [Xilinx ISE 12.2](http://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/design-tools/v12_2.html)
- [GNU Make](https://www.gnu.org/software/make/)
- (Recommended) [GNU Bash](https://www.gnu.org/software/bash/)

The N200 will work with the WebPack version of ISE.

### Requirements

- [Xilinx ISE Platform Requirements](http://www.xilinx.com/support/documentation/sw_manuals/xilinx12_2/irn.pdf)

### What FPGA does my USRP have?

- USRP N200: Spartan® 3A-DSP 1800
- USRP N210: Spartan® 3A-DSP 3400

## Build Instructions

- Download and install [Xilinx ISE 12.2](http://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/design-tools/v12_2.html)

- To add xtclsh to the PATH and to setup up the Xilinx build environment run
  + `source <install_dir>/Xilinx/12.2/ISE_DS/settings64.sh` (64-bit platform)
  + `source <install_dir>/Xilinx/12.2/ISE_DS/settings32.sh` (32-bit platform)

- Navigate to `usrp2/top/{project}` where project is:
  + N2x0: For USRP N200 and USRP N210

- To build a binary configuration bitstream run `make <target>`
  where the target is specific to each product. To get a list of supported targets run
  `make help`.

- The build output will be specific to the product and will be located in the
  `usrp2/top/{project}/build` directory. Run `make help` for more information.

### N2x0 Targets and Outputs

#### Supported Targets
- N200R3:  Builds the USRP N200 Rev 3 design.
- N200R4:  Builds the USRP N200 Rev 4 design.
- N210R3:  Builds the USRP N210 Rev 3 design.
- N210R4:  Builds the USRP N210 Rev 4 design.

#### Outputs
- `build-<target>/u2plus.bit` : Configuration bitstream with header
- `build-<target>/u2plus.bin` : Configuration bitstream without header
- `build-<target>/u2plus.syr` : Xilinx system report
- `build-<target>/u2plus.twr` : Xilinx timing report