![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here. |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
Are there anyone who knows something about FPGAs and are building some CNC motion controller + driver (all in one) ?? I am asking becose I am traying to build that kind of system by myself whith Alteras Cyclone II EP2C8F208C7 and curently I am in PCB making stage ( I am making base universal PCB module on which I could add other modules with hardware in future for experiments and code development. And what do you think about Alteras new Cyclone II dev.kit for 150$ maby I should buy this kit for code debugging and error checking in code, becose FPGA bord which I am making will be 2 layer and I will solder it my self so if code will not work in real life then it would be esear detect erors using cyclones II dev.kit . Here is my last PCB drawing I made it is not completed yet. There are mising power suply, osc. config. (EPCS4) and JTAG pins not conected! |
|
#2
| |||
| |||
| Normally FPGAs are debugged with software simulators, not in real hardware. The flow is: 1. Write the code in VHDL or Verilog; 2. Write testbench in VHDL or Verilog; 3. Simulate/test/debug the code. There are some free simulators (Ikarus for verilog). 4. Synthesize and place and route the code for target FPGA. You would have to pay for these tools (most likely) 5. Load the compiled file in the FPGA's configurator (you need a configurator to load FPGA). Overall, I think the development will require significant initial investment. |
|
#3
| |||
| |||
| Now I am just serching all information which is availible on the net. Which IP processor to chose for motion controller there are several options like Alteras Nios II, Latticemicro32(is for free), or one of opencores.org free availible processors for example there was AVR atmega 103 compatible core. Previosly I used ATmega128 and already wrought lot of code in ASM traying to make motion controller on atmega128 but I didn't make becose of low peripheral count so I switched to FPGAs. so I need to chose one processor Core. I will wright in VHDL. |
|
#4
| |||
| |||
| Where will you put all the memory you will need to hold the G-code? FPGA's are extremely expensive when compared to a general purpose processor (8051). If a microcontroller can do it, and it can, then it would be cheaper to place the bulk of the processing in the uC and use one or two CPLDs for the high speed logic that the processor can't handle. Aaron |
|
#5
| |||
| |||
| I will use parallel flash memory 32Mb (16bit) atmel AT49BV322 I think 32Mb would be enough for G-code and procesor code storage. About processors then they are not so cheep as compared to FPGAs for example Atmega128 is about 16$, we can take more powerfull AT91SAM7xx ARM7 core about 11-12$ and all they have is Flash memory that my FPGA don't have and Fpga costs are: EP2C8F208C7 20.3$ in digikey +configuration Flash (there are lot of options we can use EPCS4 (16$) or some simple MCU like Atmega48 1.5$+SPI cheep Flash 3$=4.5$) so totaly working FPGA in cheapest configuration will cost about 25$ and it is just 2X more than single MCU but in FPGA we can put 3 Mcu cores (like Nios II) + logic so we get higher price/perfomance ratio. Actualy there is one cheep FPGA motion controller it is MesA FPGA anything IO card but I need sutch electronic which I could modify by my needs and with more logic capacity. And FPGA is more flexible and If wouldn't like Nios II core then I can downlode any other core and reconfigure fpga so I can evaluate diferent free IP-cores and choose the best for my design. This reconfiguration feature is what I need. |
| Sponsored Links |
|
#6
| |||
| |||
| Your development costs for an FPGA solution will be much higher if you choose to place the microprocessor in the FPGA. Unless you are planning on building many thousands of unit, you wouldn't recoup the non-recoverables. If you are doing this as a learning project, you will add a lot to your resume if you even get to 50% completion. Aaron |
|
#8
| |||
| |||
| FPGAs with built-in cores or IP cores do heve built-in RAM (so called RAM blocks). If I remember correctly they can be pre-loaded with code during configuration. Usually configuration data stored in serial EEPROMs (Electronically Erasable Permanent Read Only Memory). Sometimes Flash is used which might be more sutable for your design. However it will require external loader (small CPLD). The benefit - same Flash can hold both FPGA image and CPU executable. |
|
#9
| |||
| |||
| hi, i looked into doing something similar a while back. One place i suggest you look is opencores.org, as they have a fair bit of free IP, including soft core processors and networking / io IP available. If i were you i would get a premade fpga dev kit, and start with that. IIRC the cheapest supplier i could find was a board called Raggedstone, its pci based, and the same company has several models to suit your budget / needs, basic one starts around the $100 mark. There are tutorials available for using the opencores pci IP with this card, but cant remember where i found them. |
|
#10
| |||
| |||
| |
| Sponsored Links |
|
#12
| |||
| |||
| This week I made my first VHDL code for Quadrature encoder logic this code detects encoder rising edge and faling edge and sends one clock signal this logic totaly take 21 LE next I will put alteras megafunction up down Counter and timer and logic will be compleated + direction sens logic. I checked this Onpen core Quadrature decoder and ather free availible decoders and all they do is counting up and down + direction but what i need is a time interval to establish encoder rotational speed so this was a hardest thing to do to make this rising and faling edge detektos like microcontrolles external interupt which detekts rising edge and make interupt signal ass soon as posible (my logic will work mutch faster then simple MCU I testes in waveform simulator 100Mhz clock signal and there was no problem so teoreticaly I could detect some 20-10Mhz encoder signal and mesure signal time. About PCB then I know that there is one great boord like alteras Cyclone Dev.kit for 150$ but thing was that this bord came out too late when I already bought from digikey my FPGA ep2c8f208. And now i have this chip and there is no way back. maby in later i will buy this alteras bord becose it has Ep2C20 chip with more logic and aditonal features |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |