URL
https://opencores.org/ocsvn/usb_fpga_2_16/usb_fpga_2_16/trunk
Subversion Repositories usb_fpga_2_16
Compare Revisions
- This comparison shows the changes necessary to convert path
/usb_fpga_2_16/trunk/default/usb-fpga-2.16
- from Rev 2 to Rev 3
- ↔ Reverse comparison
Rev 2 → Rev 3
/Default.java
1,6 → 1,6
/*! |
flashdemo -- demo for Flash memory access from firmware and host software for ZTEX USB-FPGA Module 1.15 |
Copyright (C) 2009-2011 ZTEX GmbH. |
Default firmware and loader for ZTEX USB-FPGA Modules 2.16 |
Copyright (C) 2009-2014 ZTEX GmbH. |
http://www.ztex.de |
|
This program is free software; you can redistribute it and/or modify |
/default.c
1,6 → 1,6
/*! |
flashdemo -- demo for Flash memory access from firmware and host software for ZTEX USB-FPGA Module 1.15 |
Copyright (C) 2009-2011 ZTEX GmbH. |
Default firmware and loader for ZTEX USB-FPGA Modules 2.16 |
Copyright (C) 2009-2014 ZTEX GmbH. |
http://www.ztex.de |
|
This program is free software; you can redistribute it and/or modify |
/Readme
1,16 → 1,15
flashdemo |
--------- |
default |
------- |
|
This example demonstrates how data can be read and written to/from the |
Flash memory. |
This is the default firmware for ZTEX USB-FPGA Modules 2.16a and 2.16b. |
It supports: |
|
During the start-up the firmware (defined in flashdemo.c) reads the |
number of last sector n from sector 0 (dword at position 0) and |
increments it by one. If n is larger than or equal to the total amount |
of sectors, or if it is equal to 0, n is set to 1. |
* Firmware uploading |
* High speed FPGA configuration via USB |
* Storage of firmware and bitstream in non-volatile memory |
* Configuration data: Storage of device settings in MAC-EEPROM |
|
Then n is written back to sector 0 and sector n is filled with the |
string "Hello World!". |
|
The host software (defined in FlashDemo.java) reads out the string from |
the last sector of the flash memory. |
The upload utility Default.java creates the configuration data structure |
in MAC-EEPROM and can be used to upload the default firmware to EEPROM. |
The wrapper scripts prog-*.sh can be used to do that for the respective |
FPGA Board. |