Rob Bairos

hamster tutorial help

Recommended Posts

Im able to download pre made bitfiles to my Papilio Pro + LogicStart using the bitloader, and DesignLab, however, Im running into a problem trying to create a simple vhdl example from the hamster fpga ebook.

Specifically, Im at section 6.4 "Downloading the Design Into the Device."

Do I select FPGA or SPI Flash to download to?
The screen-shot seems to imply FPGA.

At any rate, the Switches_LEDs project fails to operate on the physical board as I expect.
Instead when I download to SPI,  3 of the digits show "8" while one is blank.
The LEDs are all off, and the switches have no effect.

I did make the following changes from the tutorial for the Pro board:

I set device to
speed -2

And the constraints file is:

# Constraints for Papilio Pro
NET switch_1 LOC = "P120" | IOSTANDARD=LVTTL; ; #pap1 was switch (6) p3
NET switch_0 LOC = "P121" | IOSTANDARD=LVTTL; #pap1 was switch(7) p4
NET LED_1 LOC = "P133" | IOSTANDARD=LVTTL; #pap1 was led(6) p16
NET LED_0 LOC = "P134" | IOSTANDARD=LVTTL; #pap1 was led(7) p17

Above changes based on pinout chart:

Bit stuck for ideas, any help appreciated.


Share this post

Link to post
Share on other sites

Okay the first line of my ucf file I had:

NET switch_1 LOC = "P120" | IOSTANDARD=LVTTL; ; #pap1 was switch (6) p3

instead of

NET switch_1 LOC = "P120" | IOSTANDARD=LVTTL;  #pap1 was switch (6) p3

The double "; ;" was causing a syntax error I didn't notice.
I was actually downloading the previous bit file unknowingly.

Downloading to SPI Flash, leaves everything working!



Share this post

Link to post
Share on other sites

Excellent, glad you got that sorted out too.

BTW, I'm working on new papilio pro examples over at gitlab. I've still got a long way to go but it might be interesting to see what you think.

I've also put together a cloud environment so you don't have to mess around with installing Xilinx ISE to synthesize these new projects. You will need to place your Xilinx.lic file in ~/.Xilinx/Xilinx.lic for it to work. Keep in mind this is all just tests that I'm running, not really ready for prime time yet. But might be worth checking out if you are interested.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now