Forum Discussion
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- Tricky thanks for fast response. I edited the downloaded files to not use IEEE_PROPOSED but just leave IEEE. Quartus Prime compiles without error, but Modelsim give several lines of this error # ** Error: C:........Downloads/altera/fixed_pkg_c.vhdl(1420): (vcom-1295) Function "to_ufixed" has already been defined in this region.# ** =====> Prior declaration of "to_ufixed" is at C:/Users/José/Downloads/altera/fixed_pkg_c.vhdl(1047). Similar to what happen to this user: http://www.alteraforum.com/forum/showthread.php?t=49993 What do you recommend to do? Also, I'd like to ask: If Quartus Prime is compiling good, it means the project is doing good? How can I see the result of the addition I'm doing?? is it trough modelsim? --- Quote End --- Hi, I fear you are a beginner, if so please don't worry about and it can be simple to solve every problem arise but do a step by step learning of how to do things. We return forever beginner when we learn something new, I am beginner too. I suggest in the odd case you have no idea of how to use your board to test these exmples: http://www.pyroelectro.com/edu/fpga/ I found this site useful for learning about, please tell me what you think about. The board has a very old device on it, you can adapt to another just changing pin assignment, IE you can buy jumper bread board, JTAG ByteBlaster, components and a cheap MAX 2 570 from internet (or better a BeMicro MAX 10 for just 30 US$ where all is on board ready to support your project) I remember you own a DE1SOC board, this is a very complex @ first time try, is the only one you have at hand? Are you at school right? If not don't care but take your time and before struggle try learn simple clean code. Your board has button and switch from where you can insert number in binary, has some display where you can read number in hexadecimal, use HEX not decimal so you don't have to convert base for result. Let me perform online my daily job, so I suggest you a home work, try grasp basic from pyroedu and read a number from 4 switches then decode and display on one digit, then when you post here the code we can start a more complex job like adding numbers, at end of exercise I suppose you get hint on how to display data. If this is too basic sorry, I got wrong idea of your knowledge but don't try fly too high if you just are learning the basic of fly. Beginner status is not a problem, I am beginner on QSYS, I am not beginner on VHDL nor FPGA/CPLD, I am beginner on MAX10 and I don't know caveat of this new device due it require time. VHDL is not so simple and require a huge application, forever "FORGET" programming and remember this is an HDL language all line you wrote are executed in parallel, they are logic gates register and latch not a computer program, the first statement is executed at same time of last one! Before try learn from strange examples learn from solid code, don't use negative index on arrays, they are confusing about size. If you agree that we can open a new thread and start do exercises on your board. I own too a DE1-soc, I know it not in deep it is complex and I don't use some part I don't need for design. When you are ready and decide which way to follow I can help but remember I came here just on free time.