[SOLVED]Programming the DE0-Nano - Page 1
Forum section: electronics / general

author: sci4me
author_rank: Regular Contributor
timestamp: July 25, 2013, 11:25:35 pm
content: Hi guys, so I am getting my de0-nano in tomorrow, and right now, I'm trying to get all the software set up. I have seen on multiple websites that I should use Quartus II... and when I went to the site, I saw that its not free. So... 1. do I NEED to have this software? 2. are there free versions that work about as well... Because I really don't want to have to pay more money for now... I know there is a 30 day trial, but I wont just stop programming my fpga after 30 days...

author: olsenn
author_rank: Frequent Contributor
timestamp: July 25, 2013, 11:29:17 pm
content: Altera has what they call the "Web Edition" of Quartus which is free software. It comes on CD with the DEO Nano as well as example software for you to play with.

author: sci4me
author_rank: Regular Contributor
timestamp: July 25, 2013, 11:36:48 pm
content: How bad are its limitations?

author: olsenn
author_rank: Frequent Contributor
timestamp: July 25, 2013, 11:44:47 pm
content: There won't be any for you. The free version of Quartus doesn't work with the larger, more expensive FPGA chips, but the Cyclone IV in the DE0 Nano is obviously one of the ones it can program. Also with the paid software you can get some pre-written IP if you needed some commonly used piece of (soft) hardware, like audio codecs, HDMI controllers, etc. These things can be found online for free anyways in most cases (check out OpenCores). Lastly, I believe the Web Edition of the software has some limitations to use of Nios, the soft core microprocessor made for Altera FPGA's, but I'm not too sure about that one.If Dave's video was the only introduction you've had to FPGAs, then I would STRONGLY suggest you pick up the book "Digital Design Using Digilent FPGA Boards" from the site below. Verilog is closer to C then VHDL, so you may want to go with that version.http://www.lbebooks.com/booksandkits-HWDesignVerilog.htm#verilogDigilent

author: sci4me
author_rank: Regular Contributor
timestamp: July 25, 2013, 11:49:03 pm
content: I've had a bit more introduction to FPGA's than Dave's video, but I still am basically an absolute beginner as far as programming and using them goes. As far as the book goes, Ill check it out. Also, I have been thinking to use verilog over vhdl because of the examples I've seen. It does look easier to use to me.

author: marshallh
author_rank: Unknown
timestamp: July 25, 2013, 11:54:43 pm
content: My advice: don't learn verilog or vhdl, learn _digital design_Verilog is just how you punch it in to the computer. If you want to see what happens when software-only guys take a crack at digital design, look no further than Opencores

author: JorgeCarbajal
author_rank: Contributor
timestamp: July 26, 2013, 12:58:30 am
content: You should be fine with the web edition, even with it you can try some IP included, you can program the device but it has to be connected to the pc all the time if you choose to use them. You can find from memory controllers to DSP functions like FFT cores and such.I'm pretty sure you will receive a CD ROM containing the software you need, but if you need like downloading it right away you can get the web edition for free (after signing up with altera).

author: free_electron
author_rank: Super Contributor
timestamp: July 26, 2013, 01:42:09 am
content: Quote from: marshallh on July 25, 2013, 11:54:43 pmopensores...@Ts : quartus web edition is free. the difference :- web edition tops out at about 25 million gates . so you won;t be able to program the devices that cost more than 1000$...- doesn't do all families. the families it cannot do are all 1000$ +- no incremental compilation . irellevant unless you do million gate designs as it shortens synthesis time- cores (like nios et al) work for 1 hour , then stop. you need to powercycle the pcb to get another hour. if you don't use those cores there is no problem.

author: Berni
author_rank: Super Contributor
timestamp: July 26, 2013, 06:11:05 am
content: I have used it for some time now and it has no serious show stopper disadvantages. You also get quite a bit of IP with it for free like memory controllers and misc simple stuff. But the more advanced IP you can evaluate for 1 hour from board power up or for an infinite amount of time if you keep your board connected trough JTAG.The full version also can use up to I think 8 CPU cores for compilation and incremental compilation to reduce your compile time as it gets really anoint to have to wait 10 minutes for your design to compile just because you had to change 1 line of code somewhere. You need a sizable design to make it compile that long but even simple hello world things take 30 seconds to 1 minute to compile on large chips. It's just a bit of an annoyance when you are used to a few second incremental compiles in your huge C programs.

author: ChrisW
author_rank: Contributor
timestamp: July 26, 2013, 02:09:23 pm
content: Quote from: marshallh on July 25, 2013, 11:54:43 pmWhat books (if any) did you find helpful in learning about digital design? I'm currently reading Digital Design by M. Morris Mano.-Chris

author: olsenn
author_rank: Frequent Contributor
timestamp: July 26, 2013, 02:52:52 pm
content: QuoteAs I mentioned before: "Digital Design Using Digilent FPGA Boards"This book covers all the basics of digital design from truth tables and Karnaugh maps, shows how to create more complex components (like binary counters, shift registers, flip-flops, etc) from the basic gates, and the shows how to implement said design in your choice of Verilog 2001 of VHDL.

author: MacAttak
author_rank: Unknown
timestamp: July 26, 2013, 07:15:44 pm
content: The Xilinx ISE "WebPack edition" (the product from Xilinx that most closely approximates Quartus Web Edition) also has some annoying limits in the simulation engine that throttles it down severely once you cross a certain line of "user code" usage. It's a pretty low limit really, and while the simulator doesn't stop working entirely, it becomes immensely painful to use.Are there any limitations like that in Quartus Web Edition?

author: sci4me
author_rank: Regular Contributor
timestamp: July 26, 2013, 08:12:25 pm
content: Okay, well I am currently attempting my first hello world program, fallowing the manual of course. I am getting an error when trying to use a pll. Here it is:Code:Error (176554): Can't place PLL "pll:inst4|altpll:altpll_component|pll_altpll:auto_generated|pll1" -- I/O pin CLOCK_50 (port type INCLK of the PLL) is assigned to a location which is not connected to port type INCLK of any PLL on the deviceError (171000): Can't fit design in deviceError: Quartus II 64-Bit Fitter was unsuccessful. 2 errors, 3 warningsError: Peak virtual memory: 595 megabytesError: Processing ended: Fri Jul 26 15:08:19 2013Error: Elapsed time: 00:00:04Error: Total CPU time (on all processors): 00:00:04Error (293001): Quartus II Full Compilation was unsuccessful. 4 errors, 4 warningsIm fallowing the guide in the manual as closely as I can ... so, any ideas? I cant seem to figure it out.

author: jahonen
author_rank: Super Contributor
timestamp: July 26, 2013, 08:17:50 pm
content: Quote from: sci4me on July 26, 2013, 08:12:25 pmCheck the pin assignment of your clock input pin, it should be assigned to pin R8 (at least according to the schematic I found).Regards,Janne

author: sci4me
author_rank: Regular Contributor
timestamp: July 26, 2013, 08:19:30 pm
content: Its R8...

author: sci4me
author_rank: Regular Contributor
timestamp: July 26, 2013, 09:06:49 pm
content: Okay, turns out I had the wrong device selected. DERP! Now, I am trying to actually program my .sof onto my device and when I hit start, the progress bar immediately says failed... and nothing else happens... ideas?Edit: Okay, I have been told to convert my sof to a jic and program with that. So, I converted it and tried programming with it, but nothing. It does the same thing.Edit2: So, this error code 89... why isnt it documented? and if it is, why havent i found it yet? I found a single forum post on it but it was pretty useless. It told me to check the firewall settings for the jtag server... not sure what the hell thats supposed to mean on a linux computer (yes, i admit being a linux nub) so..

author: sci4me
author_rank: Regular Contributor
timestamp: July 27, 2013, 01:40:26 am
content: I have made a post on the altera forum aswell, but so far, no luck. Im not really sure what to do... I mean I have made multiple designs I want to test out, but since I cant program the FPGA, they're just sitting there doing nothing... Somebody? I really want to get this working soon...

author: marshallh
author_rank: Unknown
timestamp: July 27, 2013, 04:23:59 am
content: It it says failed, it will always print status messages in the main window.Go to the log and turn on the ALL filter to s how process messages. You should see something from Quartus II Programmer.You just need a SOF to load the silicon. a JIC is basically what you would write to the NV config rom, along with a short loader stub that's run through jtag. You don't need it yet.

author: sci4me
author_rank: Regular Contributor
timestamp: July 27, 2013, 04:30:20 am
content: Yeah, ive gotten this issue figured out. Now I need to figure out the pll thing.