de     

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:software:default_firmware [2017/03/22 21:54] stefanen:software:default_firmware [2017/10/10 13:27] – [ezusb_gpio.v] 87.177.180.166
Line 69: Line 69:
         // debug output         // debug output
         output [3:0] status         output [3:0] status
 +    );
 +</code>
 +
 +==== ezusb_lsi.v ====
 +
 +This module is intended for low speed communication, such as transfer of configuration data.It has an easy-to-use SRAM like interface and is used in the ucecho example. Particular features are:
 +
 +  * SRAM-like interface
 +  * 1 read port, 1 write port
 +  * 256 32 Bit registers
 +
 +The user-interface is the same for both EZ-USB variants. Only the hardware pins depends on type of FPGA-Board and are omitted here (copy it from the examples). A short description is given in the comments. 
 +<code verilog>
 +// all directions are seen from FPGA
 +module ezusb_lsi (
 + // control signals
 + input clk, // at least 24MHz
 + input reset_in, // high-active asynchronous reset
 + output reg reset,         // synchronous reset output
 + // hardware pins
 +        // ...
 + // user interface
 + output reg [7:0] in_addr, // input address
 + output reg [31:0] in_data, // input data
 + output reg in_strobe,      // 1 indicates new data received (1 for one cycle)
 + output reg in_valid,    // 1 if data is valid
 + output reg [7:0] out_addr,      // output address
 + input [31:0] out_data,          // output data
 + output reg out_strobe         // 1 indicates new data request (1 for one cycle)
 +    );
 +</code>    
 +
 +==== ezusb_gpio.v ====
 +The default interface implements 4 freely usable and independent bidirectional GPIO pins. It is used in the [[en:ztex_boards:ztex_fpga_boards:memfifo:memfifo|memfifo examle]]. The user interface is independent from FPGA board and listed an described (see the comments) below. Just the hardware pins differ (omitted below). 
 +
 +<code verilog>
 +// all directions are seen from FPGA
 +module ezusb_gpio (
 + // control signals
 + input clk, // system clock, minimum frequency is 24 MHz
 + // hardware pins
 +        // ...
 + // interface
 + output reg [3:0] in,         // inputs
 + input [3:0] out // wired-OR outputs: GPIO's not used for output must be 0
     );     );
 </code> </code>
 
en/software/default_firmware.txt · Last modified: 2023/10/30 20:26 by stefan
 
Recent changes RSS feed Creative Commons License Powered by PHP Debian Driven by DokuWiki
[ZTEX Home] [Imprint] [Privacy policy]