-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AD7616: Add AXI ADC support #1477
Open
PIoandan
wants to merge
3
commits into
main
Choose a base branch
from
dev_axi_ad7616
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
|
@@ -11,6 +11,9 @@ FPGA. The core has a AXI Memory Map interface for configuration, supports the | |||
parallel data interface of the device, and has a simple FIFO interface for the | ||||
DMAC. | ||||
|
||||
More about the generic framework interfacing ADCs, that contains the | ||||
``up_adc_channel`` and ``up_adc_common modules``, can be read in :ref:`axi_adc`. | ||||
|
||||
Files | ||||
-------------------------------------------------------------------------------- | ||||
|
||||
|
@@ -21,15 +24,17 @@ Files | |||
- Description | ||||
* - :git-hdl:`library/axi_ad7616/axi_ad7616.v` | ||||
- Verilog source for the AXI AD7616. | ||||
* - :git-hdl:`library/axi_ad7616/axi_ad7616_control.v` | ||||
- Verilog source for the AXI AD7616 control. | ||||
* - :git-hdl:`library/axi_ad7616/axi_ad7616_pif.v` | ||||
- Verilog source for the AXI AD7616 parallel interface. | ||||
* - :git-hdl:`library/common/up_adc_common.v` | ||||
- Verilog source for the ADC Common regmap. | ||||
* - :git-hdl:`library/common/up_adc_channel.v` | ||||
- Verilog source for the ADC Channel regmap. | ||||
|
||||
Block Diagram | ||||
-------------------------------------------------------------------------------- | ||||
|
||||
.. image:: block_diagram.svg | ||||
.. image:: axi_ad7616.svg | ||||
:alt: AXI AD7616 block diagram | ||||
|
||||
Configuration Parameters | ||||
|
@@ -61,18 +66,93 @@ Interface | |||
- End of conversion signal | ||||
* - adc_valid | ||||
- Shows when a valid data is available on the bus | ||||
* - adc_data | ||||
- Data bus | ||||
* - adc_sync | ||||
- Shows the first valid beat on a sequence | ||||
* - adc_data_* | ||||
- Channel ADC data | ||||
* - adc_enable_* | ||||
- ADC enable signal for each channel | ||||
* - adc_clk | ||||
- ADC clock | ||||
* - adc_reset | ||||
- ADC reset | ||||
* - adc_dovf | ||||
- ADC data overflow signaling | ||||
* - s_axi | ||||
- Standard AXI Slave Memory Map interface | ||||
|
||||
Register Map | ||||
-------------------------------------------------------------------------------- | ||||
|
||||
The register map of the core contains instances of several generic register maps | ||||
like ADC common, ADC channel or PWM Generator. The following table presents the | ||||
base addresses of each instance, after that can be found the detailed | ||||
description of each generic register map. | ||||
|
||||
.. hdl-regmap:: | ||||
:name: COMMON | ||||
:no-type-info: | ||||
|
||||
.. hdl-regmap:: | ||||
:name: ADC_COMMON | ||||
:no-type-info: | ||||
|
||||
.. hdl-regmap:: | ||||
:name: AXI_AD7616 | ||||
:name: ADC_CHANNEL | ||||
:no-type-info: | ||||
|
||||
Theory of operation | ||||
-------------------------------------------------------------------------------- | ||||
|
||||
The axi_ad7616 IP can be configured in various operation modes, this feature | ||||
being integrated in the device register map. Thus, to be able to configure the | ||||
operation mode and any other features available through the mentioned register | ||||
map, **adc_config_ctrl** signal, that is available in the *up_adc_common* | ||||
module, is used in this way: bit 1 - RD request to the device register map('b1), | ||||
bit 0 - WR request to the device register map('b1). Also, **adc_custom_control** | ||||
signal, that is available in the *up_adc_common* module, controls burst_length. | ||||
|
||||
Software Parallel Mode Channel Conversion Setting | ||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||||
.. wavedrom:: | ||||
|
||||
{signal: [ | ||||
{name: 'RESET_N', wave:'101................'}, | ||||
{name: 'CNVST', wave:'0....10..........1.'}, | ||||
{name: 'BUSY', wave:'0....1.0.........1.'}, | ||||
{name: 'CS_N', wave:'1.....01..........010101..............', "period" :0.5}, | ||||
{name: 'WR_N', wave:'1.....01..............01..............', "period" :0.5}, | ||||
{name: 'RD_N', wave:'1.................0101................', "period" :0.5}, | ||||
{name: 'DB[0:15]', wave:'z.....=.z.........=.=.=.z.........|.....', data: ['CHx',"A0","B0","CHy"], "period" :0.45} | ||||
], | ||||
foot: {text: | ||||
['tspan', 'CHx CONVERSION START'] | ||||
} | ||||
} | ||||
|
||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||||
Parallel Read Timing Diagram | ||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||||
.. wavedrom:: | ||||
|
||||
{signal: [ | ||||
{name: 'CNVST', wave:'010..........10....'}, | ||||
{name: 'BUSY', wave:'0..1......0................1......0...', "period" :0.5}, | ||||
{name: 'CS_N', wave:'1..........0..1..0..1..............0..', "period" :0.5}, | ||||
{name: 'RD_N', wave:'1......................01........01................................01.', "period" :0.25}, | ||||
{name: 'DB[0:15]', wave:'z.....=.z=.z.......', data: ['CONVA',"CONVB","B0","CHy"], "period" :1,"phase":-0.1} | ||||
] | ||||
} | ||||
|
||||
Parallel Write Timing Diagram | ||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||||
.. wavedrom:: | ||||
|
||||
{signal: [ | ||||
{name: 'CNVST', wave:'0..........................1..0', "period" :0.5}, | ||||
{name: 'CS_N', wave:'1......0.....1.....0.....1.....', "period" :0.5}, | ||||
{name: 'WR_N', wave:'1......0...1.......0...1......', "period" :0.5,"phase":-0.5}, | ||||
{name: 'DB[0:15]', wave:'z..=.z.=.z.', data: ['WRITE REG 1',"WRITE REG 2","B0","CHy"], "period" :1.3,"phase":0.7} | ||||
] | ||||
} | ||||
|
||||
|
||||
Software Support | ||||
-------------------------------------------------------------------------------- | ||||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.