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
Software Application Development Accessing Audio Lineout of Zedboard out of Simulink
  • 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
  • State Not Answered
  • Replies 1 reply
  • Subscribers 328 subscribers
  • Views 231 views
  • Users 0 members are here
Related

Accessing Audio Lineout of Zedboard out of Simulink

Former Member
Former Member over 10 years ago

Hey Guys!

I am trying to ouptput Audio data from the PL to the Lineout or Headphone out of the I2S Audio Codec with MATLAB/Simulink and the corresponding Xilinx Support Packages.

I am using HDL Workflow Advisor to generate the bitstream for the PL.
In Point 1.2 "Set Target Interface" I have to set the "Target Platform Interface" for my audio Output.
I assume I must use "External Port" here. But what "Bit Range / Address / FPGA Pin" should I use?
I am very new to this topic, so I just found out something about Y8 pin for Signal AC-GPIO0 but I don't know what to do with this information. The "Bit Range / Address / FPGA Pin" must have the format {'LSB',...,'MSB'}.
Or am I totally on a wrong path?

Thansk for your answers!

Horst

  • Sign in to reply
  • Cancel
Parents
  • noamlevine
    0 noamlevine over 10 years ago

    Out of the box, the Zynq Hardware Support Packages do not support the codec interface, but there are a couple of things you can do to get things going. First, you'll need the right IP to interface the codec to the PL. We've used the information found at http://hamsterworks.co.nz/mediawiki/index.php/Zedboard_Audio to be helpful. Once you have that, there are a couple of options:

    1. In R2015a, a new feature was introduced that allows you to import a custom reference design (specified in Vivado) into the HDL Workflow Advisor flow. Use this reference design feature, where the codec is part of your block diagram in Vivado (you can create this by using IP Packaging feature) and then use the IP Core Generation workflow to generate HDL IP which can be added to your reference design in Vivado. Make sure the correct audio pins are part of xdc file.

    2. If you don't have R2015a, black-box the codec code inside an atomic subsystem, and then:
         a.tIn Workflow Advisor step 1.2 declare all the codec pins as external port and assign the pin number on the board.  (as you pointed AC_GPIO0 is assigned pin u2018Y8u2019 on Zedboard.  Make sure you put the single quotes)
         b.tIn Workflow Advisor step 3.2 (or 4.1 if using Generic ASIC/FPGA workflow) add the codec files.  (once again make sure you have blackboxed your codec block in your Simulink model)

    Note, too, that MathWorks has a Zynq Progamming with MATLAB and Simulink training class available. See http://www.mathworks.com/zynq-training for more information.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • noamlevine
    0 noamlevine over 10 years ago

    Out of the box, the Zynq Hardware Support Packages do not support the codec interface, but there are a couple of things you can do to get things going. First, you'll need the right IP to interface the codec to the PL. We've used the information found at http://hamsterworks.co.nz/mediawiki/index.php/Zedboard_Audio to be helpful. Once you have that, there are a couple of options:

    1. In R2015a, a new feature was introduced that allows you to import a custom reference design (specified in Vivado) into the HDL Workflow Advisor flow. Use this reference design feature, where the codec is part of your block diagram in Vivado (you can create this by using IP Packaging feature) and then use the IP Core Generation workflow to generate HDL IP which can be added to your reference design in Vivado. Make sure the correct audio pins are part of xdc file.

    2. If you don't have R2015a, black-box the codec code inside an atomic subsystem, and then:
         a.tIn Workflow Advisor step 1.2 declare all the codec pins as external port and assign the pin number on the board.  (as you pointed AC_GPIO0 is assigned pin u2018Y8u2019 on Zedboard.  Make sure you put the single quotes)
         b.tIn Workflow Advisor step 3.2 (or 4.1 if using Generic ASIC/FPGA workflow) add the codec files.  (once again make sure you have blackboxed your codec block in your Simulink model)

    Note, too, that MathWorks has a Zynq Progamming with MATLAB and Simulink training class available. See http://www.mathworks.com/zynq-training for more information.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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