element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • 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
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • 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
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs Booards and Boojums: Lattice XP2 Brevia2 Board: Part 1
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: jc2048
  • Date Created: 21 Jan 2018 11:00 PM Date Created
  • Views 479 views
  • Likes 11 likes
  • Comments 2 comments
  • xp2
  • brevia2 board
  • fpgafeatured
  • fpga
  • lattice
  • boojum
Related
Recommended

Booards and Boojums: Lattice XP2 Brevia2 Board: Part 1

jc2048
jc2048
21 Jan 2018

It seems that 2018 is going to be the 'Year of the FPGA' here on element14, so I thought I'd join in, buy a small

development board and do a simple project or two.

 

Here's the board I settled on in the end. Rather than go for Xilinx, which I've worked with in the past, I

decided to experiment with a Lattice FPGA and their toolset. I liked the look of this board because it's

quite simple, with just an XP2 series FPGA part (in the kind of package where you can see all the pins) along

with a fast SRAM and an SPI flash memory. They probably haven't brought out enough I/O pins to satisfy MK,

but there's plenty for what I want and they come out to standard 0.1" pin headers, so prototyping will be

easy. A nice feature is having the programmer on the board in the form of an FTDI chip, so no need to buy an

expensive programming cable and, as it's Lattice's own board, their development software knows how to talk to

it. A further advantage of having the FTDI part there is that the second channel can function as a UART

connection between the FPGA and the PC.

 

If you study the following photo carefully you may be able to spot the typo that lead to my title for this

blog (if you don't know what a Boojum is, see reference [1] below).

 

image

 

Here are photographs of top and bottom.

 

image

 

image

 

Product LinkProduct Link

 

It's a nicely made, 4-layer board, with all the appropriate decoupling, so no complaints there.

 

The FPGA comes preprogrammed with a soft processor (Lattice calls it the Mico8) that runs code that enables

it to present a menu to the PC and execute simple commands. So my first task was to see if I could get that

functioning before doing anything of my own.

 

I'd already installed Lattice's Diamond design software before purchasing the board. I did that as a safety

measure - no point buying the board if I couldn't develop with it. The design software is free, but does

require registering and setting up a user account. The software is node-locked to the MAC address of the

computer. The first time I installed it, it failed to work and I just got two pop-up boxes with unhelpful

messages before it shut down (telling you that there has been a program exception isn't really very useful).

 

At first I thought it might be licensing - I'd inadvertantly used the WiFi MAC address rather than the

ethernet one to get a licence file - but changing to a licence based on the ethernet didn't help, so I

uninstalled the software and reinstalled it. When I reinstalled, I accepted everything and that time it was

fine (the first time I'd gone for a cut-down install to save space).

 

Since I'd already installed the design software, which apparently includes drivers, I just plugged the dev

board into the PC and ignored the warnings on the packaging to install drivers first. However, regardless of

that, Windows went off and fetched a driver from somewhere. Then I was posed with a puzzle. In the Device

Manager, the board showed up under USB devices but there was no COM port so I didn't know what to enter into

pUTTY's setup. After fiddling around for a bit, I realised that the properties for the B channel had a tick

box for VCP (virtual COM port), I ticked that, that gave me the COM port but without a port number, I pulled

the USB and reinserted it, and finally had COM5 that I could enter into the properties on the serial set-up

of pUTTY (a bit painful, but that's computers for you).

 

image

 

When I pressed the reset on the board I saw this on the terminal. You can see I've issued a couple of

commands and the replies that came back. So I seem to have a working board that can talk to the PC.

 

image

 

Next task will be to see if I can get a little, simple VHDL synthesised and on to the board - maybe count on

the LEDs, or something like that. Then I'll have a go at doing a real project (probably something music

related, as that seems like an interesting area to explore and should be a nice fit with the FPGA's

capabilities).

 

The next part is here

Booards and Boojums: Lattice XP2 Brevia2 Board: Part 2: Count Those LEDs!

 

[1] https://en.wikipedia.org/wiki/The_Hunting_of_the_Snark

  • Sign in to reply

Top Comments

  • jc2048
    jc2048 over 5 years ago in reply to genebren +3
    Perhaps you should have a go, given the recent flurry of activity. One or two of the quieter members here evidently have a lot of experience of complex systems built with FPGAs, so I think you'd readily…
  • genebren
    genebren over 5 years ago +2
    Jon, Good start on you FPGA learning project. I have not used this part before, but I have done a lot of work with Xilinx CPLD parts. After moving on to my new computer I have been hesitant to load some…
  • jc2048
    jc2048 over 5 years ago in reply to genebren

    Perhaps you should have a go, given the recent flurry of activity. One or two of the quieter members here evidently have a lot of experience of complex systems built with FPGAs, so I think you'd readily find help and support if you needed it.

     

    I liked working with CPLDs. That was how I got started with VHDL - back in the 1990s I was using Cypress devices [because they added block RAM to the logic] and they really pushed using the HDL, to the extent of giving away free textbooks, that one of their staff had written, to people who were designing-in the devices (and it was a good book, the complete polar opposite of marketing bumpf).

     

    The two best bits of self-learning I did in my career were to teach myself C and teach myself VHDL. At university they taught me Fortran, because that was what scientists and engineers used (I've never used it for anything), and then Pascal, because it was trendy ("structured programming" was the mantra) and I've never used that either. When PCs became affordable I bought a C compiler, taught myself and have used it ever since (the language, I mean - the compiler is long gone).

     

    Here's how much space Lattice Diamond takes up. The zipped install file that you download is about 1.5GB. That's for a full install - as I said above, the selective install didn't work for me.

     

    image

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • genebren
    genebren over 5 years ago

    Jon,

     

    Good start on you FPGA learning project.  I have not used this part before, but I have done a lot of work with Xilinx CPLD parts.  After moving on to my new computer I have been hesitant to load some of these large tool sets, so I have not experimented with CPLD/FPGA parts lately, but I feel it is only a matter of time before I will jump back into this field.  It will be interesting to see how your project goes and to see if I might find a toolset/device to use moving forward.

    Gene

    • Cancel
    • Vote Up +2 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 © 2023 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube