Visible to Intel only — GUID: eis1414476604766
Ixiasoft
1.1. Configuration Methods
1.2. Specifications
1.3. FIFO Functional Timing Requirements
1.4. SCFIFO ALMOST_EMPTY Functional Timing
1.5. FIFO Output Status Flag and Latency
1.6. FIFO Metastability Protection and Related Options
1.7. FIFO Synchronous Clear and Asynchronous Clear Effect
1.8. SCFIFO and DCFIFO Show-Ahead Mode
1.9. Different Input and Output Width
1.10. DCFIFO Timing Constraint Setting
1.11. Coding Example for Manual Instantiation
1.12. Design Example
1.13. Gray-Code Counter Transfer at the Clock Domain Crossing
1.14. Guidelines for Embedded Memory ECC Feature
1.15. FIFO Intel® FPGA IP User Guide Archives
1.16. Document Revision History for the FIFO Intel® FPGA IP User Guide
Visible to Intel only — GUID: eis1414476604766
Ixiasoft
1.11. Coding Example for Manual Instantiation
This section provides a Verilog HDL coding example to create an instance of the DCFIFO. It is not a complete coding for you to compile, but it provides a guideline and some comments for the required structure of the instantiation. You can use the same structure to instantiate other IP cores but only with the ports and parameters that are applicable to the IP cores you instantiated.
Verilog HDL Coding Example to Instantiate the DCFIFO
//module declaration
module dcfifo8x32 (aclr, data, …… ,wfull);
//Module's port declarations
input aclr;
input [31:0] data;
.
.
output wrfull;
//Module’s data type declarations and assignments
wire rdempty_w;
.
.
wire wrfull = wrfull_w; wire [31:0] q = q_w;
/*Instantiates dcfifo megafunction. Must declare all the ports available from the megafunction and
define the connection to the module's ports.
Refer to the ports specification from the user guide for more information about the megafunction's
ports*/
//syntax: <megafunction's name> <given an instance name>
dcfifo inst1 (
//syntax: .<dcfifo's megafunction's port>(<module's port/wire>)
.wrclk (wrclk),
.rdclk (rdclk),
.
.
.wrusedw ()); //left the output open if it's not used
/*Start with the keyword “defparam”, defines the parameters and value assignments. Refer to
parameters specifications from the user guide for more information about the megafunction's
parameters*/
defparam
//syntax: <instance name>.<parameter> = <value>
inst1.intended_device_family = "Stratix III",
inst1.lpm_numwords = 8,
.
.
inst1.wrsync_delaypipe = 4;
endmodule