Parameterizable Macros for Intel® FPGAs User Guide

ID 772350
Date 7/08/2024
Public
Document Table of Contents

3.1.5. Synchronous FIFO SystemVerilog Instantiation Template

SYNC_FIFO SystemVerilog Instantiation Template

//Quartus Prime Parameterizable Macro Template
//SYNC FIFO
//Documentation :
//https://www.intel.com/content/www/us/en/docs/programmable/772350/
//Macro Location :
//$QUARTUS_ROOTDIR/libraries/megafunctions/sync_fifo.v

sync_fifo #(
			.ADD_RAM_OUTPUT_REGISTER                 ("OFF"),
			.ALMOST_EMPTY_VALUE                      (1),
			.ALMOST_FULL_VALUE                       (1),
			.ENABLE_SCLR                             ("OFF"),
			.ENABLE_ACLR                             ("OFF"),
			.ALLOW_RWCYCLE_WHEN_FULL                 ("ON"),
			.ENABLE_SHOWAHEAD                        ("OFF"),
            .DATA_WIDTH                              (8),
			.ADDR_WIDTH                              (11),
			.OVERFLOW_CHECKING                       ("ON"),
			.UNDERFLOW_CHECKING                      ("ON"),
			.MAXIMUM_DEPTH                           (2048),
			.BYTE_SIZE                               (8),
			.BYTE_EN_WIDTH                           (1)

  ) <instance_name> (
	.clock	     (_connected_to_clock_),	   //input, width = 1
	.data 	     (_connected_to_data_), 	   //input, width = DATA_WIDTH
	.rdreq 	    (_connected_to_rdreq_),       //input, width = 1
	.sclr  	    (_connected_to_sclr_),        //input, width = 1, synch reset
	.aclr 	     (_connected_to_aclr_),        //input, width = 1, asynch reset
	.wrreq	     (_connected_to_wrreq_),       //input, width = 1
	.byteena       (_connected_to_byteena_),     //input, width = BYTE_EN_WIDTH
	.almost_empty  (_connected_to_almost_empty_),//output, width = 1
	.almost_full   (_connected_to_almost_full_), //output, width = 1
	.q    	     (_connected_to_q_),    	   //output, width = DATA_WIDTH
	.usedw 	    (_connected_to_usedw_),       //output, width = ADDR_WIDTH
	.empty         (_connected_to_empty_),   	//output, width = 1
	.full          (_connected_to_full_)   	  //output, width = 1
  );