Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Help me about SRAM 512k on boardDE2.

Hi everyone,

I am buiding a system in SoPC buider. I want to use SRAM 512k on board DE2 but the component in SoPC buider( Quartus 8.1 Web edition) don't support.

On board is IS61LV25616AL, component in SoPC are Cypress and IDT... I think all component in SoPC are not compatible. So, help me solve this problem or show me the link and way to down this component SRAM 512k (IS61LV25616AL) .

Thanks.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Build an user defined component using this code:

    module	SRAM_16Bit_512K
    (	// Host Data
    	oDATA,iDATA,iADDR,
    	iWE_N,iOE_N,
    	iCE_N,iCLK,
    	iBE_N,
    	// SRAM
    	SRAM_DQ,
    	SRAM_ADDR,
    	SRAM_UB_N,
    	SRAM_LB_N,
    	SRAM_WE_N,
    	SRAM_CE_N,
    	SRAM_OE_N
    );
    //	Host Side
    input		iDATA;
    output		oDATA;
    input		iADDR;
    input		iWE_N,iOE_N;
    input		iCE_N,iCLK;
    input		iBE_N;
    //	SRAM Side
    inout		SRAM_DQ;
    output		SRAM_ADDR;
    output		SRAM_UB_N,
    		SRAM_LB_N,
    		SRAM_WE_N,
    		SRAM_CE_N,
    		SRAM_OE_N;
    assign	SRAM_DQ 		=	SRAM_WE_N ? 16'hzzzz : iDATA;
    assign	oDATA		=	SRAM_DQ;
    assign	SRAM_ADDR	=	iADDR;
    assign	SRAM_WE_N	=	iWE_N;
    assign	SRAM_OE_N	=	iOE_N;
    assign	SRAM_CE_N	=	iCE_N;
    assign	SRAM_UB_N	=	iBE_N;
    assign	SRAM_LB_N	=	iBE_N;
    endmodule