Skip to content

Commit 8672223

Browse files
IuliaCMoldovanStancaPop
authored andcommitted
projects/cn0577: Remove ADAQ2387x from CN0577
- docs/projects/cn0577: Removed the ADAQ2387X supported boards from the CN0577 documentation, because now they have a separate documentation page - projects/cn0577: Update parameters' details - projects/cn0577: Add clarification in comments Signed-off-by: Iulia Moldovan <[email protected]> - docs/projects/cn0577: Fix doc to reflect actual supported parts - projects/cn0577: Remove ADC_RES related info Signed-off-by: Stanca Pop <[email protected]>
1 parent 1920f83 commit 8672223

File tree

8 files changed

+24
-69
lines changed

8 files changed

+24
-69
lines changed

docs/projects/cn0577/cn0577_zed_block_diagram.svg

Lines changed: 7 additions & 7 deletions
Loading

docs/projects/cn0577/index.rst

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Overview
77
-------------------------------------------------------------------------------
88

99
The :adi:`CN0577` provides an analog front-end and an FMC
10-
digital interface for :adi:`LTC2387-18`/ :adi:`LTC2387-16` its core. It is a low
10+
digital interface for :adi:`LTC2387-18`, its core. It is a low
1111
noise, high speed successive approximation register (SAR) ADC with a resolution
12-
of 18/16 bits and sampling rate up to 15MSPS.
12+
of 18 bits and sampling rate up to 15MSPS.
1313

1414
:adi:`CN0577` includes an on-board reference oscillator and a
1515
retiming circuit to minimize signal-to-noise ratio (SNR) degradation due to the
@@ -28,9 +28,7 @@ Supported boards
2828
Supported devices
2929
-------------------------------------------------------------------------------
3030

31-
- :adi:`ADAQ23876`
3231
- :adi:`LTC2387-18`
33-
- :adi:`LTC2387-16`
3432

3533
Supported carriers
3634
-------------------------------------------------------------------------------
@@ -41,14 +39,15 @@ Block design
4139
-------------------------------------------------------------------------------
4240

4341
.. warning::
42+
4443
The VADJ for the Zedboard must be set to 2.5V.
4544

4645
Block diagram
4746
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4847

4948
The data path and clock domains are depicted in the below diagram:
5049

51-
.. image:: ../cn0577/cn0577_zed_block_diagram.svg
50+
.. image:: cn0577_zed_block_diagram.svg
5251
:width: 800
5352
:align: center
5453
:alt: CN0577/ZedBoard block diagram
@@ -61,11 +60,6 @@ Configuration modes
6160
- 1 - two-lane output mode (default)
6261
- 0 - one-lane output mode
6362

64-
- ADC_RES: resolution in bits
65-
66-
- 18 - 18 bits ADC resolution (default)
67-
- 16 - 16 bits ADC resoluton
68-
6963
Jumper setup
7064
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7165

@@ -189,7 +183,6 @@ Hardware related
189183
- Product datasheets:
190184

191185
- :adi:`LTC2387-18`
192-
- :adi:`LTC2387-16`
193186

194187
- `Circuit Note CN0577 <https://www.analog.com/media/en/reference-design-documentation/reference-designs/cn0577.pdf>`__
195188

projects/cn0577/README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
- Evaluation board product page:
44
- [EVAL-CN0577](https://www.analog.com/cn0577)
5-
- [EVAL-ADAQ23878](https://analog.com/eval-adaq23878)
6-
- [EVAL-ADAQ23876](https://analog.com/eval-adaq23876)
7-
- [EVAL-ADAQ23875](https://analog.com/eval-adaq23875)
85
- System documentation: https://wiki.analog.com/resources/eval/user-guides/circuits-from-the-lab/cn0577
96
- HDL project documentation: http://analogdevicesinc.github.io/hdl/projects/cn0577/index.html
107
- Evaluation board VADJ: 2.5V
@@ -14,10 +11,6 @@
1411
| Part name | Description |
1512
|-----------------------------------------|-----------------------------------------------------------|
1613
| [LTC2387-18](https://www.analog.com/LTC2387-18) | 18-Bit, 15 MSPS, SAR ADC |
17-
| [LTC2387-16](https://www.analog.com/LTC2387-16) | 16-Bit, 15 MSPS, SAR ADC |
18-
| [ADAQ23878](https://www.analog.com/ADAQ23878) | 18-Bit, 15 MSPS, μModule Data Acquisition Solution |
19-
| [ADAQ23876](https://www.analog.com/ADAQ23876) | 16-Bit, 15 MSPS, μModule Data Acquisition Solution |
20-
| [ADAQ23875](https://www.analog.com/ADAQ23875) | 16-Bit, 15 MSPS, μModule Data Acquisition Solution |
2114

2215
## Building the project
2316

projects/cn0577/common/cn0577_bd.tcl

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@
66
# env params
77

88
set TWOLANES $ad_project_params(TWOLANES); # two-lane mode (1) or one-lane mode (0); default two-lane
9-
set ADC_RES $ad_project_params(ADC_RES); # ADC resolution; default 18 bits
10-
set OUT_RES [expr {$ADC_RES == 16 ? 16 : 32}]
11-
set CLK_GATE_WIDTH [expr {($TWOLANES == 0 && $ADC_RES == 18) ? 9 : \
12-
($TWOLANES == 0 && $ADC_RES == 16) ? 8 : \
13-
($TWOLANES == 1 && $ADC_RES == 18) ? 5 : \
14-
4}]
9+
set CLK_GATE_WIDTH [expr {($TWOLANES == 0) ? 9 : 5}]
1510

1611
# ltc2387 i/o
1712

@@ -29,17 +24,20 @@ create_bd_port -dir O clk_gate
2924
# adc peripheral
3025

3126
ad_ip_instance axi_ltc2387 axi_ltc2387
32-
ad_ip_parameter axi_ltc2387 CONFIG.ADC_RES $ADC_RES
33-
ad_ip_parameter axi_ltc2387 CONFIG.OUT_RES $OUT_RES
27+
ad_ip_parameter axi_ltc2387 CONFIG.ADC_RES 18
28+
ad_ip_parameter axi_ltc2387 CONFIG.OUT_RES 32
3429
ad_ip_parameter axi_ltc2387 CONFIG.TWOLANES $TWOLANES
3530
ad_ip_parameter axi_ltc2387 CONFIG.ADC_INIT_DELAY 27
3631

3732
# axi pwm gen
3833

3934
ad_ip_instance axi_pwm_gen axi_pwm_gen
4035
ad_ip_parameter axi_pwm_gen CONFIG.N_PWMS 2
36+
# pwm0 - cnv
4137
ad_ip_parameter axi_pwm_gen CONFIG.PULSE_0_WIDTH 1
38+
# period 8 when 120MHz clock (120MHz/8=15MSPS)
4239
ad_ip_parameter axi_pwm_gen CONFIG.PULSE_0_PERIOD 8
40+
# pwm1 - clk_gate
4341
ad_ip_parameter axi_pwm_gen CONFIG.PULSE_1_WIDTH $CLK_GATE_WIDTH
4442
ad_ip_parameter axi_pwm_gen CONFIG.PULSE_1_PERIOD 8
4543
ad_ip_parameter axi_pwm_gen CONFIG.PULSE_1_OFFSET 0
@@ -54,7 +52,7 @@ ad_ip_parameter axi_ltc2387_dma CONFIG.SYNC_TRANSFER_START 0
5452
ad_ip_parameter axi_ltc2387_dma CONFIG.AXI_SLICE_SRC 0
5553
ad_ip_parameter axi_ltc2387_dma CONFIG.AXI_SLICE_DEST 0
5654
ad_ip_parameter axi_ltc2387_dma CONFIG.DMA_2D_TRANSFER 0
57-
ad_ip_parameter axi_ltc2387_dma CONFIG.DMA_DATA_WIDTH_SRC $OUT_RES
55+
ad_ip_parameter axi_ltc2387_dma CONFIG.DMA_DATA_WIDTH_SRC 32
5856
ad_ip_parameter axi_ltc2387_dma CONFIG.DMA_DATA_WIDTH_DEST 64
5957

6058
# connections

projects/cn0577/zed/README.md

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ The overwritable parameters from the environment are:
1818
- TWOLANES: whether to use two lanes or one lane mode;
1919
- 1 - two-lane mode used (default)
2020
- 0 - one-lane mode used
21-
- ADC_RES: the resolution of the ADC input data;
22-
- 18 - the resolution is 18 bits (default)
23-
- 16 - the resolution is 16 bits
2421

2522
### Example configurations
2623

@@ -29,31 +26,13 @@ The overwritable parameters from the environment are:
2926
This specific command is equivalent to running `make` only:
3027

3128
```
32-
make TWOLANES=1 \
33-
ADC_RES=18
29+
make TWOLANES=1
3430
```
3531

3632
Corresponding device tree: [zynq-zed-adv7511-cn0577.dts](https://github.com/analogdevicesinc/linux/blob/main/arch/arm/boot/dts/xilinx/zynq-zed-adv7511-cn0577.dts)
3733

3834
#### One lane, 18-bit resolution
3935

4036
```
41-
make TWOLANES=0 \
42-
ADC_RES=18
43-
```
44-
45-
#### Two lanes, 16-bit resolution
46-
47-
```
48-
make TWOLANES=1 \
49-
ADC_RES=16
50-
```
51-
52-
Corresponding device tree: [zynq-zed-adv7511-adaq23875.dts](https://github.com/analogdevicesinc/linux/blob/main/arch/arm/boot/dts/xilinx/zynq-zed-adv7511-adaq23875.dts)
53-
54-
#### One lane, 16-bit resolution
55-
56-
```
57-
make TWOLANES=0 \
58-
ADC_RES=16
37+
make TWOLANES=0
5938
```

projects/cn0577/zed/system_bd.tcl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ ad_ip_parameter axi_sysid_0 CONFIG.ROM_ADDR_BITS 9
1212
ad_ip_parameter rom_sys_0 CONFIG.PATH_TO_FILE "$mem_init_sys_file_path/mem_init_sys.txt"
1313
ad_ip_parameter rom_sys_0 CONFIG.ROM_ADDR_BITS 9
1414

15-
set sys_cstring "TWOLANES=$ad_project_params(TWOLANES) \
16-
ADC_RES=$ad_project_params(ADC_RES)"
15+
set sys_cstring "TWOLANES=$ad_project_params(TWOLANES)"
1716

1817
sysid_gen_sys_init_file $sys_cstring

projects/cn0577/zed/system_constr.xdc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ set_property -dict {PACKAGE_PIN G19 IOSTANDARD LVCMOS25} [get_ports twolanes_cnt
3434

3535
# 120MHz clock
3636
set clk_period 8.333
37-
# differential propagation delay for ref_clk
37+
# differential propagation delay for ref_clk (LVDS_CLK coming from ADN4661, tPHLD)
3838
set tref_early 0.3
3939
set tref_late 1.5
40-
# differential propagation delay for virt_clk
40+
# differential propagation delay for virt_clk (the clock that enters ADG3241 has propagation delay until it exits it and goes to SN47LVC2G74; see ADG data sheet Propagation Delay A to B)
4141
set tvirt_early 0
4242
set tvirt_late 0.225
4343
# data delay

projects/cn0577/zed/system_project.tcl

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,9 @@ source $ad_hdl_dir/projects/scripts/adi_board.tcl
1111
# TWOLANES: parameter describing the number of lanes
1212
# - 1: in two-lane mode (default)
1313
# - 0: in one-lane mode
14-
#
15-
# ADC_RES: parameter describing the ADC input resolution
16-
# - 18: 18 bits (default)
17-
# - 16: 16 bits
18-
#
19-
# in one-lane mode (TWOLANES=0), only the 18-bit resolution is supported! (ADC_RES=16)
2014

2115
adi_project cn0577_zed 0 [list \
22-
TWOLANES [get_env_param TWOLANES 1 ] \
23-
ADC_RES [get_env_param ADC_RES 18 ] \
16+
TWOLANES [get_env_param TWOLANES 1 ]
2417
]
2518

2619
adi_project_files cn0577_zed [list \

0 commit comments

Comments
 (0)