- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everyone, I wish to do database by using c programming in the IDE. For example, user can enter his name and description which will be stored in the flash memory, so that they can retrieve their description next time by just entering their name and the corresponding description will be shown. Looking for ur reply, Thank you.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Pretty basic. Is there something specific you need help with?
Jake- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks for ur reply. In fact, i wish to get the inputs from ps/2 and store those info(name and description) into flash memory.As I know, IDE provides us some functions such as alt_flash_open, alt_flash_close,alt_flash_write,
alt_flash_read read,alt_flash_get_flash_info,alt_flash_erase_block,and alt_flash_write_block. By using these functions,I'm not sure whether they are workable in this system. Can u plz give me some guidelines or examples for reference, or there are other better ways which is easier to be implemented.thank you.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May I ask why you want to implement such a thing?
Well regardless of the why, if I were going to do what you are trying to do, I would write the entire thing in software first on a PC without using an FPGA. There are 3 components to your design: 1 - User input and output 2 - input processing 3 - non-volatile data storage. Number 2 doesn't change at all whether you implement it on a PC or an FPGA. Number 1 could be exactly the same on the PC and FPGA if you get the ps2 input to act like stdin. You haven't mentioned how you'll be displaying the information to the user. Number 3 would be a file on the PC. Although it could also be a file on the FPGA I'm guessing implementing a file system is a little advanced at this point. So you'll probably write some lower level interface to the flash that makes use of the alt_flash_xxx calls you've mentioned. So. write it first on the PC then worry about the FPGA. You know you could consider using uCLinux which would already have a lot of the stuff done for you but you're going to go through a pretty hefty learning curve with it. Jake- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Jake, very thanks for ur reply. In fact,I'm doing my final year project entitled "Nios II Processor-Based Fingerprint Identification System". So, before going deep into image processing, i wish to try something related to permanent storage and this will be presented to my FYP supervisor. Before this, I have spent a lot of time to work with the PS/2 and LCD character display which really plagued me a lot. Yah, the output will be the LCD character display and I'm using de2.
I have a question here, is file system same as FILE in c programming? Thanks for ur advice. Ren Yi- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yah, one more queston. is there any way to supervise the data and instruction arrangements in fteh lash memory, sdram and rom?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've done the first two steps but the third step which is really difficult for me at this moment.can anyone provide me some guideline for me? thank u.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
=;= My problem is how to open a file in location which doesn't corrupt other data in flash memory? i have read through the software handbook provided by altera and get some functios such as,alt_write_flash,.......and many more.how to utilize these function in my case.looking for ur guys reply. thank you.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page