-
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
Ad7606 serial/parallel interface #1206
Changes from 10 commits
a0f8990
4fa1035
5e931ff
bb060ac
19ce016
8917daf
f45ece3
4f46831
12c9770
831abd4
ea88bcb
da0c422
3a9e018
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// *************************************************************************** | ||
// *************************************************************************** | ||
// Copyright (C) 2023 Analog Devices, Inc. All rights reserved. | ||
// Copyright (C) 2023-2024 Analog Devices, Inc. All rights reserved. | ||
// | ||
// In this HDL repository, there are many different and unique modules, consisting | ||
// of various HDL (Verilog or VHDL) components. The individual modules are | ||
|
@@ -39,7 +39,7 @@ module axi_ad7606x #( | |
|
||
parameter ID = 0, | ||
parameter DEV_CONFIG = 0, | ||
parameter ADC_CH_DW = 16, | ||
parameter ADC_TO_DMA_N_BITS = 16, | ||
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. too many whitespaces in declarations 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. Fixed. |
||
parameter ADC_N_BITS = 16, | ||
parameter EXTERNAL_CLK = 0 | ||
) ( | ||
|
@@ -87,14 +87,14 @@ module axi_ad7606x #( | |
output adc_clk, | ||
|
||
output adc_valid, | ||
output [ADC_CH_DW-1:0] adc_data_0, | ||
output [ADC_CH_DW-1:0] adc_data_1, | ||
output [ADC_CH_DW-1:0] adc_data_2, | ||
output [ADC_CH_DW-1:0] adc_data_3, | ||
output [ADC_CH_DW-1:0] adc_data_4, | ||
output [ADC_CH_DW-1:0] adc_data_5, | ||
output [ADC_CH_DW-1:0] adc_data_6, | ||
output [ADC_CH_DW-1:0] adc_data_7, | ||
output [ADC_TO_DMA_N_BITS-1:0] adc_data_0, | ||
output [ADC_TO_DMA_N_BITS-1:0] adc_data_1, | ||
output [ADC_TO_DMA_N_BITS-1:0] adc_data_2, | ||
output [ADC_TO_DMA_N_BITS-1:0] adc_data_3, | ||
output [ADC_TO_DMA_N_BITS-1:0] adc_data_4, | ||
output [ADC_TO_DMA_N_BITS-1:0] adc_data_5, | ||
output [ADC_TO_DMA_N_BITS-1:0] adc_data_6, | ||
output [ADC_TO_DMA_N_BITS-1:0] adc_data_7, | ||
output adc_enable_0, | ||
output adc_enable_1, | ||
output adc_enable_2, | ||
|
@@ -146,7 +146,7 @@ module axi_ad7606x #( | |
wire [ 7:0] adc_enable; | ||
wire adc_reset_s; | ||
|
||
wire [(8*ADC_CH_DW)-1:0] dma_data; | ||
wire [(8*ADC_TO_DMA_N_BITS)-1:0] dma_data; | ||
wire dma_dvalid; | ||
|
||
wire up_clk; | ||
|
@@ -287,13 +287,13 @@ module axi_ad7606x #( | |
for (k = 0;k < 8;k = k + 1) begin | ||
ad_datafmt #( | ||
.DATA_WIDTH (ADC_N_BITS), | ||
.BITS_PER_SAMPLE (ADC_CH_DW) | ||
.BITS_PER_SAMPLE (ADC_TO_DMA_N_BITS) | ||
) i_datafmt ( | ||
.clk (adc_clk), | ||
.valid (1'b1), | ||
.data (adc_data_s[k*ADC_N_BITS+(ADC_N_BITS-1):k*ADC_N_BITS]), | ||
.valid_out (dma_dvalid), | ||
.data_out (dma_data[k*ADC_CH_DW+(ADC_CH_DW-1):k*ADC_CH_DW]), | ||
.data_out (dma_data[k*ADC_TO_DMA_N_BITS+(ADC_TO_DMA_N_BITS-1):k*ADC_TO_DMA_N_BITS]), | ||
.dfmt_enable (adc_dfmt_enable_s[k]), | ||
.dfmt_type (adc_dfmt_type_s[k]), | ||
.dfmt_se (adc_dfmt_se_s[k])); | ||
|
@@ -385,14 +385,14 @@ module axi_ad7606x #( | |
endgenerate | ||
|
||
assign adc_data_s = {adc_data_0_s,adc_data_1_s,adc_data_2_s,adc_data_3_s,adc_data_4_s,adc_data_5_s,adc_data_6_s,adc_data_7_s}; | ||
assign adc_data_7 = dma_data[0*ADC_CH_DW+(ADC_CH_DW-1):0*ADC_CH_DW]; | ||
assign adc_data_6 = dma_data[1*ADC_CH_DW+(ADC_CH_DW-1):1*ADC_CH_DW]; | ||
assign adc_data_5 = dma_data[2*ADC_CH_DW+(ADC_CH_DW-1):2*ADC_CH_DW]; | ||
assign adc_data_4 = dma_data[3*ADC_CH_DW+(ADC_CH_DW-1):3*ADC_CH_DW]; | ||
assign adc_data_3 = dma_data[4*ADC_CH_DW+(ADC_CH_DW-1):4*ADC_CH_DW]; | ||
assign adc_data_2 = dma_data[5*ADC_CH_DW+(ADC_CH_DW-1):5*ADC_CH_DW]; | ||
assign adc_data_1 = dma_data[6*ADC_CH_DW+(ADC_CH_DW-1):6*ADC_CH_DW]; | ||
assign adc_data_0 = dma_data[7*ADC_CH_DW+(ADC_CH_DW-1):7*ADC_CH_DW]; | ||
assign adc_data_7 = dma_data[0*ADC_TO_DMA_N_BITS+(ADC_TO_DMA_N_BITS-1):0*ADC_TO_DMA_N_BITS]; | ||
assign adc_data_6 = dma_data[1*ADC_TO_DMA_N_BITS+(ADC_TO_DMA_N_BITS-1):1*ADC_TO_DMA_N_BITS]; | ||
assign adc_data_5 = dma_data[2*ADC_TO_DMA_N_BITS+(ADC_TO_DMA_N_BITS-1):2*ADC_TO_DMA_N_BITS]; | ||
assign adc_data_4 = dma_data[3*ADC_TO_DMA_N_BITS+(ADC_TO_DMA_N_BITS-1):3*ADC_TO_DMA_N_BITS]; | ||
assign adc_data_3 = dma_data[4*ADC_TO_DMA_N_BITS+(ADC_TO_DMA_N_BITS-1):4*ADC_TO_DMA_N_BITS]; | ||
assign adc_data_2 = dma_data[5*ADC_TO_DMA_N_BITS+(ADC_TO_DMA_N_BITS-1):5*ADC_TO_DMA_N_BITS]; | ||
assign adc_data_1 = dma_data[6*ADC_TO_DMA_N_BITS+(ADC_TO_DMA_N_BITS-1):6*ADC_TO_DMA_N_BITS]; | ||
assign adc_data_0 = dma_data[7*ADC_TO_DMA_N_BITS+(ADC_TO_DMA_N_BITS-1):7*ADC_TO_DMA_N_BITS]; | ||
|
||
up_adc_common #( | ||
.ID (ID), | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// *************************************************************************** | ||
// *************************************************************************** | ||
// Copyright (C) 2023 Analog Devices, Inc. All rights reserved. | ||
// Copyright (C) 2023-2024 Analog Devices, Inc. All rights reserved. | ||
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. should be reverted 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. |
||
// | ||
// In this HDL repository, there are many different and unique modules, consisting | ||
// of various HDL (Verilog or VHDL) components. The individual modules are | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// *************************************************************************** | ||
// *************************************************************************** | ||
// Copyright (C) 2023 Analog Devices, Inc. All rights reserved. | ||
// Copyright (C) 2023-2024 Analog Devices, Inc. All rights reserved. | ||
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. should be reverted 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. |
||
// | ||
// In this HDL repository, there are many different and unique modules, consisting | ||
// of various HDL (Verilog or VHDL) components. The individual modules are | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
############################################################################### | ||
## Copyright (C) 2023 Analog Devices, Inc. All rights reserved. | ||
## Copyright (C) 2023-2024 Analog Devices, Inc. All rights reserved. | ||
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. should be reverted 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. |
||
### SPDX short identifier: ADIBSD | ||
############################################################################### | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#################################################################################### | ||
## Copyright (c) 2018 - 2023 Analog Devices, Inc. | ||
## Copyright (c) 2018 - 2024 Analog Devices, Inc. | ||
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. should be reverted 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. |
||
### SPDX short identifier: BSD-1-Clause | ||
## Auto-generated, do not modify! | ||
#################################################################################### | ||
|
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. Please add more details regarding the valid combinations of build parameters. you can use this readme as reference 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. |
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.
should be reverted
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.