URL
https://opencores.org/ocsvn/usb_fpga_1_11/usb_fpga_1_11/trunk
Subversion Repositories usb_fpga_1_11
Compare Revisions
- This comparison shows the changes necessary to convert path
/usb_fpga_1_11/trunk/examples/usb-fpga-1.2/ucecho
- from Rev 2 to Rev 3
- ↔ Reverse comparison
Rev 2 → Rev 3
/UCEcho.java
137,7 → 137,7
|
// upload the bitstream if necessary |
if ( force || ! ztex.getFpgaConfiguration() ) { |
System.out.println("FPGA configuration time: " + ztex.configureFpga( "fpga/ucecho.bin" , force ) + " ms"); |
System.out.println("FPGA configuration time: " + ztex.configureFpga( "fpga/ucecho.bit" , force ) + " ms"); |
} |
|
|
/ucecho.c
53,6 → 53,13
SYNCDELAY; |
EP4BCL = 0x80; // skip package, (re)arm EP4 |
|
FIFORESET = 0x80; // reset FIFO |
SYNCDELAY; |
FIFORESET = 2; |
SYNCDELAY; |
FIFORESET = 0x00; |
SYNCDELAY; |
|
while (1) { |
if ( !(EP4CS & bmBIT2) ) { // EP4 is not empty |
size = (EP4BCH << 8) | EP4BCL; |
/Makefile
18,7 → 18,7
IHXEXTRADEPS= |
|
# Extra files that should be included into th jar archive |
EXTRAJARFILES=ucecho.ihx fpga/ucecho.bin |
EXTRAJARFILES=ucecho.ihx fpga/ucecho.bit |
|
################################ |
# DO NOT CHANAGE THE FOLLOWING # |
/Readme
12,7 → 12,7
except that the uppercase - lowercase conversion made by the FPGA. |
|
The driver (defined in UCEcho.java) uploads the the Firmware (ucecho.ihx) |
to the EZ-USB Microcontroller and the Bitstream (fpga/ucecho.bin) to the |
to the EZ-USB Microcontroller and the Bitstream (fpga/ucecho.bit) to the |
FPGA if necessary, sends user string to the device and reads them back. |
|
Uploading the Firmware to EEPROM is also supported by the firmware (e.g. |
/fpga/ucecho.ise
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/fpga/ucecho.vhd
11,9 → 11,11
end ucecho; |
|
|
--signal declaration |
architecture RTL of ucecho is |
|
--signal declaration |
signal pb_buf : unsigned(7 downto 0); |
|
begin |
dpUCECHO: process(CLK) |
begin |
20,10 → 22,11
if CLK' event and CLK = '1' then |
if ( pc >= 97 ) and ( pc <= 122) |
then |
pb <= pc - 32; |
pb_buf <= pc - 32; |
else |
pb <= pc; |
pb_buf <= pc; |
end if; |
pb <= pb_buf; |
end if; |
end process dpUCECHO; |
|