Skip to content

Commit

Permalink
cn0585: Add doc support
Browse files Browse the repository at this point in the history
  • Loading branch information
StancaPop committed Oct 26, 2023
1 parent bba9d34 commit 65bb52f
Show file tree
Hide file tree
Showing 6 changed files with 303 additions and 4 deletions.
1 change: 1 addition & 0 deletions CI/doc/SysObjsProps.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
% * AD7768 <AD4858_Rx.html Rx>
% * AD2S1210 <AD2S1210_Rx.html Rx>
% * AD4020 <AD4020_Rx.html Rx>
% * CN0585 <CN0585_Tx.html Tx> and <CN0585_Rx.html Rx>
2 changes: 1 addition & 1 deletion CI/doc/genhtml.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mfiledir = '..\..\+adi\';
docdir = '..\..\doc\';
parts = {'AD4630','AD4030','AD463x','AD7768','AD4858','AD2S1210','AD4020'};
parts = {'AD4630','AD4030','AD463x','AD7768','AD4858','AD2S1210','AD4020','CN0585'};
trx_files = {'Rx','Base','Tx'};
for ii = 1:numel(parts)
for jj = 1:numel(trx_files)
Expand Down
293 changes: 293 additions & 0 deletions CI/gen_doc/docs/assets/rd_cn0585.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions CI/gen_doc/docs/gen_hdl_refdesigns.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def update_hdl_refdesigns():
objs[obj]["rd_image"] = "ad9361"
elif objs[obj]["name"] in ["adrv9002"]:
objs[obj]["rd_image"] = "adrv9001"
elif objs[obj]["name"] in ["cn0585"]:
objs[obj]["rd_image"] = "cn0585"
else:
objs[obj]["rd_image"] = "jesd"

Expand Down
4 changes: 3 additions & 1 deletion CI/gen_doc/docs/gen_rd_svg.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

def gen_rd_svg():
refs = ["rd_ad9361","rd_adrv9001","rd_jesd"]
refs = ["rd_ad9361","rd_adrv9001","rd_cn0585","rd_jesd"]
css_out = ""

for ref in refs:
Expand All @@ -10,8 +10,10 @@ def gen_rd_svg():
svg = f.read()

selectable_boxes = {
"AXIAD3552RBox": {"link": "https://wiki.analog.com/resources/fpga/docs/axi_ad3552r"},
"AXIAD9361Box": {"link": "https://wiki.analog.com/resources/fpga/docs/axi_ad9361"},
"AXIADRV9002Box": {"link": "https://wiki.analog.com/resources/eval/user-guides/adrv9002/axi_adrv9002"},
"AXILTC2387Box": {"link": "https://wiki.analog.com/resources/fpga/docs/axi_ltc2387"},
"TxDMAEngineBox": {"link": "https://wiki.analog.com/resources/fpga/docs/axi_dmac"},
"TxUPACKBox": {"link": "https://wiki.analog.com/resources/fpga/docs/util_upack"},
"TxFIFOBox": {"link": "https://wiki.analog.com/resources/fpga/docs/util_rfifo"},
Expand Down
5 changes: 3 additions & 2 deletions CI/gen_doc/docs/gen_sysobj_doc.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
, {'AD4858', {'Rx'}}...
, {'AD2S1210', {'Rx'}}...
, {'AD4020', {'Rx'}}...
, {'CN0585', {'Rx','Tx'}}...
%{'QuadMxFE',{'Rx','Tx'}}...
};

Expand All @@ -24,9 +25,9 @@
for jj = 1:numel(rootClasses{ii}{2})
part = rootClasses{ii}{1};
tmp = rootClasses{ii}{2};
trx_file = tmp{jj};
pcx_file = tmp{jj};
all_props = [];
dotmfilename = strcat(mfiledir, '.', part, '.', trx_file);
dotmfilename = strcat(mfiledir, '.', part, '.', pcx_file);
props = unique(properties(dotmfilename));
for prop = 1:length(props)

Expand Down

0 comments on commit 65bb52f

Please sign in to comment.