To compile custom FPGA images, you need a iCEcube2 license. It can be requested here free of charge. I put in my university information and received license with no further questions: latticesemi.com/products/des … /index.cfm
That is a great news! I also tried getting a free license with my university informations and now I am able to compile your VHDL code. I am just curious why does it produce only 32kB dat file instead of 64kB as you put in the attachment. When I opened your project it showed some warning message about incorrect settings (invalid device family name and package). I run the synplify tool and then double clicked the “Run all” command. The resulting dat file was about 32kB
The output file should be FPGAExample/sbt/outputs/bitmap/fpga_top_bitmap.bin and mine is 68088 bytes.
Verify that icecube2 shows these settings:
DeviceFamily iCE65
Device L04
DevicePackage VQ100
DevicePower L
–
Other thoughts:
For some reason timing analysis gives only 40 MHz operation rate for even the simplest circuits. It appears there is some delay involved in the IO pins or something. It runs just fine at 72 MHz though, so it may be some timing analyzer parameters that are wrong.
Works quite well. Pipelining the FIFO so that it operates at 72 MHz was a bit difficult, thanks to ##vhdl on Freenode for help.
The Pawn program is a bit slow for actually capturing anything, the buffer overflows easily. The RLE encoding currently has maximum count of 4096, so it takes quite many samples just to record long intervals. I might have to change it so that if the top bit is set, all 16 bits are used to encode delay.