element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
RFSoC Boards How to enable both DDR4s on ZCU208 RFSoC Simulink models where I like to have both ADC and DACs streaming to/from separate DDR4?
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 4 replies
  • Subscribers 325 subscribers
  • Views 568 views
  • Users 0 members are here
  • ddr4
  • zcu208
  • RFSoC Explorer 2.2
  • vivado
  • hdl coder
Related

How to enable both DDR4s on ZCU208 RFSoC Simulink models where I like to have both ADC and DACs streaming to/from separate DDR4?

Saeedk74
Saeedk74 3 months ago

The examples provided for ADC/DAC with DDR4 interface only support one DDR4. I have modified them so I could simultaneously capture ADC samples to one DDR4 and stream DAC samples from another DDR4. I modified the reference designs and made sure that the HDL workflow advisor detects the changes in the plugin_rd.m. I also manually added 2 AXI4Master in plungin_rd.com. Everything is good till I make the Vivado project and it fails there! The failure is related to connecting the AXI to DDR4 MIG! I did everything you could possibly imagine, but no luck! That would be great if someone could provide instructions which work! Appreciate any response. 
imageimage

image

  • Sign in to reply
  • Cancel

Top Replies

  • lightcollector
    lightcollector 3 months ago in reply to Saeedk74 +1
    Hi, If you haven't already figured out what your issue is, there isn't enough here for me to pinpoint what is going on with respect to your unique system. If any partial Vivado project is created, take…
Parents
  • Saeedk74
    Saeedk74 3 months ago

    I also modified the add_system.tcl as below:

    if {[string first "zcu208" $BOARD_PART ]!=-1} {
    # Create instance: ddr4_0, and set properties
    set ddr4_0 [ create_bd_cell -type ip -vlnv xilinx.com:ip:ddr4:2.2 ddr4_0 ]
    set_property -dict [ list \
    CONFIG.ADDN_UI_CLKOUT1_FREQ_HZ {100} \
    CONFIG.C0.CS_WIDTH {2} \
    CONFIG.C0.DDR4_AxiAddressWidth {32} \
    CONFIG.C0.DDR4_AxiDataWidth {256} \
    CONFIG.C0.DDR4_CLKOUT0_DIVIDE {3} \
    CONFIG.C0.DDR4_Clamshell {true} \
    CONFIG.C0.DDR4_DataWidth {32} \
    CONFIG.C0.DDR4_InputClockPeriod {3334} \
    CONFIG.C0.DDR4_MemoryPart {MT40A1G8WE-075E} \
    CONFIG.C0_CLOCK_BOARD_INTERFACE {default_sysclk_c0_300mhz} \
    CONFIG.C0_DDR4_BOARD_INTERFACE {ddr4_sdram_c0} \
    CONFIG.RESET_BOARD_INTERFACE {reset} \
    ] $ddr4_0

    puts "DDR4 block: $ddr4_0"

    # Create instance: ddr4_1, and set properties
    set ddr4_1 [ create_bd_cell -type ip -vlnv xilinx.com:ip:ddr4:2.2 ddr4_1 ]
    set_property -dict [ list \
    CONFIG.ADDN_UI_CLKOUT1_FREQ_HZ {100} \
    CONFIG.C0.CS_WIDTH {2} \
    CONFIG.C0.DDR4_AxiAddressWidth {32} \
    CONFIG.C0.DDR4_AxiDataWidth {256} \
    CONFIG.C0.DDR4_CLKOUT0_DIVIDE {3} \
    CONFIG.C0.DDR4_Clamshell {true} \
    CONFIG.C0.DDR4_DataWidth {32} \
    CONFIG.C0.DDR4_InputClockPeriod {3334} \
    CONFIG.C0.DDR4_MemoryPart {MT40A1G8WE-075E} \
    CONFIG.C0_CLOCK_BOARD_INTERFACE {default_sysclk_c1_300mhz} \
    CONFIG.C0_DDR4_BOARD_INTERFACE {ddr4_sdram_c1} \
    CONFIG.RESET_BOARD_INTERFACE {reset} \
    ] $ddr4_1

    }

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • lightcollector
    lightcollector 3 months ago in reply to Saeedk74

    Hi, If you haven't already figured out what your issue is, there isn't enough here for me to pinpoint what is going on with respect to your unique system.

    If any partial Vivado project is created, take a look at that from within Vivado itself.  If there isn't any Vivado project, then I recommend generating one with an example design that is closest to where you want to go.  Then take that design and modify it using purely Vivado to add the new functionality.  Then export the block design tcl and use it to double check your unique customization of the various .m and .tcl files.

    If you have already done the above, then my guess would be that you haven't modified enough of the existing hard coded wiring that MathWorks HDL Coder for RFSoC creates.  One approach would be to add after HDL Coder for ZCU208 tcl does its' things, some tcl that deletes portions of the original design and then re-add and/or re-wire the old and new pieces to do what you want.  If you could do this in the plugin then you could continue to rely on your Simulink simulation.  But you could add your custom DDR purely through Vivado tcl scripts and for Simulink, add the memory external to the DUT; this would allow you to do some amount of simulation within Simulink still.

    HDL Coder for RFSoC builds a fairly rigid platform around the users single clock domain DUT algorithm Simulink block.  This makes it easy for users to get started with the tradeoff that not all board features are usable or easy to use.

    Keep us posted on your progress, thanks

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Saeedk74
    Saeedk74 3 months ago in reply to lightcollector

    Hi, thank you very much for the reply. Yes, I have modified the vivado project from other examples and added axi_interconnects and the 2nd MIG for the 2nd DDR4 interface. I also generated .tcl file within vivado. But the issue I have is connecting the Simulink to the modified .tcl files! It always overwrites what I do on .tcl files when I am creating the Vivado project under HDL workflow advisor. That's where I am stuck! I have modified the reference designs and plug-ins and everything works in Workflow advisor except where I get to creating the Vivado project! 
    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • lightcollector
    lightcollector 3 months ago in reply to Saeedk74

    Hi, there are various .m files and .tcl files that generate the Vivado block design.  The way MathWorks designed the tool, it is not intended that an end user modify their copyrighted files.  Most of the MathWorks tools, including this one are not open-source.  Officially I cannot condone or support modifying MathWorks tools: legally and liability-wise you are on your own to do such.

    But... none of the source code that generates the .tcl code that wires up and configures the various IPs in the Vivado block design is hidden.  In addition to the ZCU208 specifics that are installed through RFSoC Explorer, MathWorks RFSoC Add-On for HDL Coder also installs various source code including a common part, as well as specifics for the ZCU111 and ZCU216 RFSoC dev boards.

    Good luck!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • lightcollector
    lightcollector 3 months ago in reply to Saeedk74

    Hi, there are various .m files and .tcl files that generate the Vivado block design.  The way MathWorks designed the tool, it is not intended that an end user modify their copyrighted files.  Most of the MathWorks tools, including this one are not open-source.  Officially I cannot condone or support modifying MathWorks tools: legally and liability-wise you are on your own to do such.

    But... none of the source code that generates the .tcl code that wires up and configures the various IPs in the Vivado block design is hidden.  In addition to the ZCU208 specifics that are installed through RFSoC Explorer, MathWorks RFSoC Add-On for HDL Coder also installs various source code including a common part, as well as specifics for the ZCU111 and ZCU216 RFSoC dev boards.

    Good luck!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube