hamster tutorial help

Rob Bairos

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: http://papilio.cc/index.php?n=Playground.PapilioPinouts

Bit stuck for ideas, any help appreciated.


Link to comment
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!



Link to comment
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.



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.