This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[FAQ] [参考译文] [常见问题解答]如何生成由 C2000 SysConfig 生成的方框图? (clb.dot、ePWM.dot、adc.dot)

Guru**** 633805 points
Other Parts Discussed in Thread: SYSCONFIG
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1179583/faq-how-do-i-generate-the-block-diagrams-generated-by-c2000-sysconfig-clb-dot-epwm-dot-adc-dot

Thread 中讨论的其他器件:SysConfig

在基于 SysConfig 的 C2000项目中、我看到该工具会生成一系列".dot"文件。 如何将这些文件转换为 HTML 或 SVG 文件中的方框图可视化、以便可以在 CCS 中打开/查看它们?

C2000培训视频:https://training.ti.com/search-catalog/field_language/ZH-CN?keywords=C2000&start%5Bdate%5D=&end%5Bdate%5D=

C2000培训小程序码

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    要生成 方框 图 HTML 文件,请验证以下设置:

    转至  Project Properties→CCS Build→Variables Tab→ 并将  generate_diagram 的值设置为1  

    如果工程属性中不存在 Generate_diagram、则模板工程缺少编译后处理步骤、并继续添加以下编译后处理步骤。

    转至  Project Properties→CCS Build→Steps 选项卡→Post-build steps →如果尚未安装这些步骤、请将以下行插入底部的 post-build steps (每个步骤为一行):

    if ${CLB_DEBUG} == 1  ${NODE_TOOL} "${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/dot_file_libraries/clbDotUtility.js"  "${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/" "${BuildDirectory}/syscfg" "${BuildDirectory}/syscfg/clb.dot"
    
    if ${CLB_DEBUG} == 1  ./simulation/simulation_output.exe
    
    if ${CLB_DEBUG} == 1  ${CLB_SIM_COMPILER}/g++ -DCLB_SIM -Og -g -gdwarf-3 -gstrict-dwarf -Wall -Wl,-Map,${BuildDirectory}/simulation/simulation_output.map -L${SYSTEMC_INSTALL}/build/src -o${BuildDirectory}/simulation/simulation_output.exe ${BuildDirectory}/simulation/clb_sim.o ${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/systemc/src/type3/CLB_FSM_SC_model.o ${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/systemc/src/type3/CLB_HLC_SC_model.o ${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/systemc/src/type3/CLB_LUT4_SC_model.o ${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/systemc/src/type3/CLB_OutputLUT_SC_model.o ${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/systemc/src/type3/CLB_counter_SC_model.o ${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/systemc/src/type3/CLB_counter_top_SC_model.o ${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/systemc/src/type3/CLB_FSM_top_SC_model.o ${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/systemc/src/type3/CLB_LUT4_top_SC_model.o ${C2000WARE_ROOT}/utilities/clb_tool/clb_syscfg/systemc/src/type3/CLB_OutputLUT_top_SC_model.o -Wl,--start-group -lsystemc -Wl,--end-group

    重新编译工程、该图应出现在  CPU1_RAM  (或当前设置为活动的编译配置文件夹) →syscfg→clb.html/其他 html 文件下

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    请注意、上述步骤也适用于生成 CLB 调试 VCD 文件。 用户只需将 CLB_DEBUG 构建变量设置为1。