From 65bb52ff1f3c675038b71c28d464c8b883fbc7fb Mon Sep 17 00:00:00 2001 From: Stanca Pop Date: Thu, 26 Oct 2023 10:59:36 +0300 Subject: [PATCH] cn0585: Add doc support --- CI/doc/SysObjsProps.m | 1 + CI/doc/genhtml.m | 2 +- CI/gen_doc/docs/assets/rd_cn0585.svg | 293 ++++++++++++++++++++++++++ CI/gen_doc/docs/gen_hdl_refdesigns.py | 2 + CI/gen_doc/docs/gen_rd_svg.py | 4 +- CI/gen_doc/docs/gen_sysobj_doc.m | 5 +- 6 files changed, 303 insertions(+), 4 deletions(-) create mode 100644 CI/gen_doc/docs/assets/rd_cn0585.svg diff --git a/CI/doc/SysObjsProps.m b/CI/doc/SysObjsProps.m index c088b24..6983493 100644 --- a/CI/doc/SysObjsProps.m +++ b/CI/doc/SysObjsProps.m @@ -9,3 +9,4 @@ % * AD7768 % * AD2S1210 % * AD4020 +% * CN0585 and diff --git a/CI/doc/genhtml.m b/CI/doc/genhtml.m index 77043be..cad2ec3 100644 --- a/CI/doc/genhtml.m +++ b/CI/doc/genhtml.m @@ -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) diff --git a/CI/gen_doc/docs/assets/rd_cn0585.svg b/CI/gen_doc/docs/assets/rd_cn0585.svg new file mode 100644 index 0000000..b00ccdb --- /dev/null +++ b/CI/gen_doc/docs/assets/rd_cn0585.svg @@ -0,0 +1,293 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/CI/gen_doc/docs/gen_hdl_refdesigns.py b/CI/gen_doc/docs/gen_hdl_refdesigns.py index 74f8c07..45e991b 100644 --- a/CI/gen_doc/docs/gen_hdl_refdesigns.py +++ b/CI/gen_doc/docs/gen_hdl_refdesigns.py @@ -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" diff --git a/CI/gen_doc/docs/gen_rd_svg.py b/CI/gen_doc/docs/gen_rd_svg.py index 8cb6f6b..3c833be 100644 --- a/CI/gen_doc/docs/gen_rd_svg.py +++ b/CI/gen_doc/docs/gen_rd_svg.py @@ -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: @@ -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"}, diff --git a/CI/gen_doc/docs/gen_sysobj_doc.m b/CI/gen_doc/docs/gen_sysobj_doc.m index f4e0c29..1256284 100644 --- a/CI/gen_doc/docs/gen_sysobj_doc.m +++ b/CI/gen_doc/docs/gen_sysobj_doc.m @@ -16,6 +16,7 @@ , {'AD4858', {'Rx'}}... , {'AD2S1210', {'Rx'}}... , {'AD4020', {'Rx'}}... + , {'CN0585', {'Rx','Tx'}}... %{'QuadMxFE',{'Rx','Tx'}}... }; @@ -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)