element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
FPGA
  • Technologies
  • More
FPGA
Blog First Arty-S7 project, prior experience with Spartan-6 and Vivado
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join FPGA to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 23 Jun 2022 7:52 AM Date Created
  • Views 1793 views
  • Likes 8 likes
  • Comments 3 comments
  • summer of fpga
  • Spartan_Migration
Related
Recommended

First Arty-S7 project, prior experience with Spartan-6 and Vivado

Jan Cumps
Jan Cumps
23 Jun 2022

I'm a late arriver to the 7 Ways to Leave Your Spartan-6 FPGA program. My device arrived today (June 23). I prepared a first project yesterday. I have prior knowledge with Spartan-6 and ISE, and I know Vivado. I used the Vitis / Vivado toolchain extensively with a Zynq SOC. The exercise yesterday was to see if the initial gap to program for the Spartan-7 is big. And if the Digilent documentation was sufficient to start a simple project. Answer: the gap isn't big, the documentation is sufficient.

image

I did a simple exercise: make one of the LEDs blink, using one of the on-board clocks, with a clock divider in between. An exercise that I had done in ISE for the Spartan-6, and in Vivado for a Zynq device.

  • I used the Digilent documentation to add the board file to an existing Vivado installation,
  • retrieved the VHDL clock divider source code that I used before, 
  • found the pin for the LED 0 in the Digilent constraint file for the Arty S7
  • found the clock and reset by creating a project in Vivado and look in the board resources.

Then I created a block design in Vivado, added that clock and the VHDL divider, connected them up and attached the divider output to LED 0.

image

Here's where I selected clock and reset button. The clock wizard block is placed automatically when you select the system clock.
I could have used the LED resource from the board too, but that's implemented as an AXI device and I want to use simple logic for the first design.

image

I then created the wrapper, and made it the Top module.

As indicated earlier, I didn't use the Board LED resource, but just made the divider's output pin external and assigned it to LED 0 in the constraints:

image

Last thing to check: the reset is active low. The clock wizard needs to be adapted for that:

image

The build completed first time. So far so good. Now, a day later when the board arrived, I'm testing it.

Did it work right first time: yes and no Grinning: the design did what it was asked to, but the frequency for the LED was too high. It showed as always on, but 50% dimmed.
So I altered the clock to be the lowest possible: 4.7 MHz. And increased the clock divider value from 25000 to 100000. This resulted in a 23 Hz signal at the LED. That's within the range that the eye can detect.

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Summary: The switch from ISE to Vivado isn't steep. It took me a few hours (following someone's video) when I started with the Zynq family. And this exercise confirms that. What I did different in Vivado vs ISE is that I used a block design to connect clock, divider and LED. In ISE I did that in the top VHDL source. For the design, the only design difference between the Spartan-6 and 7 in this exercise was the clock source I selected. And that was a deliberate choice. I could just have used PACKAGE_PIN F14 to get a direct 12 MHz clock and link that to the divider.

  • Sign in to reply
  • DAB
    DAB over 3 years ago

    Nice post Jan.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Jan Cumps
    Jan Cumps over 3 years ago in reply to javagoza

    I seem to remember that the Clock and PLL IPs have lower frequency limitations - I ran into those when working with the Zynq a while ago. But that's not why I chose to use a divider.

    The reason for the divider in VHDL was to see if there are significant HDL implementation differences between Spartan-6 and Spartan-7. So I wanted to reuse a design I used on the Spartan-6 before.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • javagoza
    javagoza over 3 years ago

    Jan Cumps, welcome to the "7 Ways to Leave Your Spartan-6 program"! Even if you joined quite late you already know Vivado and have been able to start working with the board immediately. Good start.

    I think it is easy to enable a second clock with the clock wizard instead of using the clock divider. The result will be the same but the diagram is simpler, I don't know if it's easier to understand.

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