[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-656035-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-656035-en":130,"doc-similar-656035":161},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","automatic-diagram-creation-for-design-and-testbenches-paper","Automatic diagram creation for design and testbenches - Paper","","Investigation into processes for automatically creating diagrams from Verilog RTL and testbench code. The work presents a flow integrating open source drawing and diagram tools to generate and keep documentation continuously up to date across the development cycle. Generated outputs include design and testbench hierarchy diagrams, clock and reset tree diagrams, and design connectivity diagrams. The approach supports configurable hierarchies and can be used for specification and training purposes.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/automatic-diagram-creation-for-design-and-testbenches-paper/656035/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/automatic-diagram-creation-for-design-and-testbenches-paper/656035.png","ImageObject",300,407,{"name":42,"@type":43},"mieayamfan","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-27","2026-10-25",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",10,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What is the main goal of the paper?","Question",{"text":63,"@type":64},"To present processes and an integration flow that automatically generate diagrams for Verilog RTL and testbench code, keeping documentation current through the development cycle.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"Which types of diagrams does the flow generate?",{"text":68,"@type":64},"It generates design and testbench hierarchical diagrams, clock and reset tree diagrams, and design connectivity diagrams.",{"name":70,"@type":61,"acceptedAnswer":71},"How are the diagrams generated and updated as development progresses?",{"text":72,"@type":64},"Because the diagrams are linked to the RTL/testbench code, they can be regenerated at multiple points in the development cycle to track changes in design and testbench development.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},656035,1793074173,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,110,115,120,123,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":103,"slug":104},6,50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":112,"show_sort_weight":113,"slug":114},8,"Research & Report",30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":55,"slug":125},"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":102,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":111,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":143,"read_time":118,"preview_page_count":33,"preview_urls":144},962090893677,"https://ap-avatar.wpscdn.com/davatar_3d24733baf745e90a7e4bdd5f77d97b2","Automatic diagram creation for design and  \ntestbenches  \nPaul O’Keeffe, CreVinn Teoranta, Dublin, Ireland ([paul_okeeffe@crevinn.com](paul_okeeffe@crevinn.com)) Jamie Beattie, CreVinn Teoranta, Dublin, Ireland ([j](jamie_beattie@crevinn.com)[amie_beattie@crevinn.com](jamie_beattie@crevinn.com)) Gian Lorenzo, CreVinn Teoranta, Dublin, Ireland ([gian_lorenzo@crevinn.com](gian_lorenzo@crevinn.com))  \nAbstract—This paper is to present some findings in an investigation into processes that can be used to automatically create diagrams for Verilog RTL and testbench code.  \nKeywords—diagram; generation; XML; VPI; Verilator; graphviz; pydot  \nI. RELATED WORK  \nThe purpose of this paper is to present a flow for the integration of open source drawing/diagram tools into a design and testbench. The integration of these tools will allow for a number of different types of diagrams to be automatically generated for both specification and training purposes. As these diagrams are linked to the RTL/TB code, they can be re-generated at various points in the development cycle thereby keeping the design and testbench documentation continuously up to date. The novelty of this paper lies in the fact that the diagrams are automatically generated and can track the design and testbench development cycles. Another use case for this flow is for highly configurable designs where hierarchy changes based on configuration.  \nThe types of diagrams that were generated include:  \n● Design and testbench hierarchical diagrams  \n● Clock and reset tree diagrams  \n● Design connectivity diagrams  \nDesign and testbench documentation are critical to maintaining projects for the long term. CréVinn Teoranta have developed a Structured Design Methodology for hardware design which we call the Fletcher Design Methodology. The Fletcher Design Methodology (FDM) is based on methodologies presented by Bill Fletcher and YourdonDeMarco. The Fletcher Design Methodology is particularly effective when implemented in the initial design phase and leads to good design practices. The methodology generates a well partitioned design and corresponding design documentation and diagrams. The design diagrams can in turn be used for specifications documents and for reviews. The purpose of this paper is to present a methodology for design and testbench documentation that can be used in conjunction with the FDM for situations where the documented design is being used as IP in a larger System On a Chip (SOC) or to document the associated testbench.  \nII. APPLICATION  \nFive tools were investigated and used as part of the flow developed as part of this project. One comercial tool (Xcelium) and 4 open-source tools (Verilator, Graphviz, Verilog-Perl, [Diagrams.net](Diagrams.net)).  \nVPI (Cadence Xcelium)  \nThe SystemVerilog Verification Procedural Interface (VPI) provides a library of C language functions and mechanisms for associating foreign language functions with SystemVerilog user-defined system task and system function names. For this project VPI programmes were developed and run on the Cadence Xcelium simulator. These programmes used VPI functions vpi_iterate() to traverse the design hierarchy and generate the [diagram files .dot](diagram files .dot)[ ](diagram files .dot)(graphviz) and .csv ([diagrams.net](diagrams.net)) files.  \nThe VPI interface to the Cadence simulator is a powerful way of interacting with a design or a testbench, the VPI routines can be integrated with an existing design flow to run with an existing xrun script.  \nxrun-clean-licq-sv +define+CADENCE_XRUN +define+WAVES=1-timescale 1ns/1ps-access +rwcincdir ../rtl/tnk_corrib_r1127/rtl-F ../filelist/rtl_list.f ../tb/TB_tnk.v ../../../../scripts/VPI/createagram.cloadvpi :register_my_systfs-xmlibdirpath $RUN_DIR +define+WAVES=1  \n+define+WAVES_PATH=directory=$RUN_DIR  \nNext requirement is for the VPI function to be called from inside an initial block in the testbench, as can be seen below arguments can be added to the VPI functi","cbCaioDyfp5lDBuL","https://ap.wps.com/l/cbCaioDyfp5lDBuL","pdf",1527483,"English","# Related Work\n# Application","[{\"question\":\"What is the main goal of the paper?\",\"answer\":\"To present processes and an integration flow that automatically generate diagrams for Verilog RTL and testbench code, keeping documentation current through the development cycle.\"},{\"question\":\"Which types of diagrams does the flow generate?\",\"answer\":\"It generates design and testbench hierarchical diagrams, clock and reset tree diagrams, and design connectivity diagrams.\"},{\"question\":\"How are the diagrams generated and updated as development progresses?\",\"answer\":\"Because the diagrams are linked to the RTL/testbench code, they can be regenerated at multiple points in the development cycle to track changes in design and testbench development.\"}]","Automatic diagram creation for design and testbenches - Paper | PDF",1792965779,[145,149,153,157],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/9068f23ed6bcefe00c59c78ff86ec4b1.webp",983,1390,{"page_no":26,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/d95bf74571e1c34031861773fd159ee7.webp",982,1388,{"page_no":30,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/1b6bd86cbcf2005eebd9e959254d9567.webp",981,1387,{"page_no":33,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/130965df561ab86e4e8668eefcf65bf8.webp",980,1385,{"list":162,"token":11},[163,169,176,182,188,194,200,206,212,218],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":106,"category_name":29,"create_tm":168},673078,"Processor System Reset Module - LogiCORE IP Product Guide - v5.0","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229990322850/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796161919&Signature=MMFgxSIgNVAmk00XI4d1Wse0eq0%3D","processor-system-reset-module-logicore-ip-product-guide-v50",1793619895,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":174,"category_name":29,"create_tm":175},290937,"V1402 - ADAT Optical Audio Data Generator and Encoder","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229903072881/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796161919&Signature=O7TqTmAXwiwpDzQl2RFCA36UKEs%3D","v1402-adat-optical-audio-data-generator-and-encoder",17,1789642993,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":30,"category_name":29,"create_tm":181},720497,"DS3231M - Product Brief - ±5ppm I²C Real-Time Clock","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024397378/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796161919&Signature=XcZdhX9hENj0UQ6oBgaHFd0aNmo%3D","ds3231m-product-brief-5ppm-i2c-real-time-clock",1795037583,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":106,"category_name":29,"create_tm":187},672877,"lowRISC Verilog Coding Style Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229990161839/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796161919&Signature=L5Q3a%2Bpi6NGIqIc2siG9kaGqo8w%3D","lowrisc-verilog-coding-style-guide",1793611850,{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":111,"category_name":29,"create_tm":193},151504,"Standard Gotchas in Verilog and SystemVerilog - Part 1 - Subtleties","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229869939342/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796161919&Signature=vAUvBSlZZHdRhn23BhaBRKns4bc%3D","standard-gotchas-in-verilog-and-systemverilog-part-1-subtleties",1787841792,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":33,"category_name":29,"create_tm":199},692113,"TABLE OF CONTENTS - Revision History - 01 Table of Contents - 02 Revision History","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002898282/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796161919&Signature=aGpvmDKifwX5nnqS5KQ18pFxGvM%3D","table-of-contents-revision-history-01-table-of-contents-02-revision-history",1794178779,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":97,"category_name":29,"create_tm":205},720145,"CD4017BM/CD4017BC Decade Counter/Divider with 10 Decoded Outputs - CD4022BM/CD4022BC Divide-by-8 Counter/Divider with 8 Decoded Outputs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024385216/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796161919&Signature=QS15Bv5PkkbfIBkxs9Eea%2FfcjJU%3D","cd4017bmcd4017bc-decade-counterdivider-with-10-decoded-outputs-cd4022bmcd4022bc-divide-by-8-counterdivider-with-8-decoded-outputs",1795034860,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":116,"category_name":29,"create_tm":211},560339,"CD4020 BC - 14-Stage Ripple Carry Binary Counters - Electrical Characteristics","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947482864/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796161919&Signature=zRPaGD8h6ACmRNTc6pkEYy7cJrA%3D","cd4020-bc-14-stage-ripple-carry-binary-counters-electrical-characteristics",1791802742,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":116,"category_name":29,"create_tm":217},656286,"Skyline - Mental Model Diagram Generator - Group 1 - 28 Jan 2025","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974788120/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796161919&Signature=iHFMLWuo3fhydjZUB%2BlaIe6zOhA%3D","skyline-mental-model-diagram-generator-group-1-28-jan-2025",1792967424,{"doc_id":219,"doc_title":220,"file_type":137,"home_preview_img_url":221,"slug":222,"view_count":116,"category_name":29,"create_tm":223},559417,"CD4094B Types - 8-Stage Shift-and-Store Bus Register - Features","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947449801/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796161919&Signature=HYfi8QvEodEohgL0%2BLy8ol%2B8jOQ%3D","cd4094b-types-8-stage-shift-and-store-bus-register-features",1791800600]