Parameterizable Macros for Intel® FPGAs User Guide

ID 772350
Date 9/30/2024
Public
Document Table of Contents

5.6.3. Bus Synchronizer VHDL Instantiation Template

Bus Synchronizer VHDL Instantiation Template

-- Documentation :
-- https://www.intel.com/content/www/us/en/docs/programmable/772350/
-- Macro Location :
-- $QUARTUS_ROOTDIR/eda/sim_lib/altera_lnsim_components.vhd
-- Add the library and use clauses before the design unit declaration
library altera_lnsim; 
use altera_lnsim.altera_lnsim_components.all; 
-- Instantiating IPM_CDC_BUS_SYNC
	<instance_name> : IPM_CDC_BUS_SYNC
	generic map (
			DATA_WIDTH =>              4
			)
  port map ( 
    src_clk =>        _connected_to_src_clk_,      -- input, width = 1	  
    src_sig =>        _connected_to_src_sig_,      -- input, width = DATA_WIDTH
    dst_clk =>        _connected_to_dst_clk_,	  -- input, width = 1
    dst_sig =>        _connected_to_dst_sig_ ,     -- output, width = DATA_WIDTH
    src_sync_req =>   _connected_to_src_sync_req_, -- output, width = 1
    dst_sync_ack =>   _connected_to_dst_sync_ack_, -- output, width = 1
    src_req =>        _connected_to_src_req_,      -- output, width = 1
    dst_ack =>        _connected_to_dst_ack_       -- output, width = 1
			);