SDRAMTEST
所属分类:VHDL/FPGA/Verilog
开发工具:VHDL
文件大小:8029KB
下载次数:5
上传日期:2011-03-30 10:57:21
上 传 者:
chapman
说明: SDRAM控制程序,可以作为一个IP核使用, 比自带的功能要多 可以稳定运行
(SDRAM control procedures can be used as an IP core, more than the built-in capabilities can be stabilized to run)
文件列表:
SDRAMTEST (0, 2010-05-17)
SDRAMTEST\.sopc_builder (0, 2010-05-17)
SDRAMTEST\.sopc_builder\install.ptf (11111, 2009-09-04)
SDRAMTEST\cpu_0.ocp (840, 2009-09-04)
SDRAMTEST\cpu_0.v (194664, 2009-09-04)
SDRAMTEST\cpu_0.vo (235306, 2009-09-04)
SDRAMTEST\cpu_0_jtag_debug_module.v (12372, 2009-09-04)
SDRAMTEST\cpu_0_jtag_debug_module_wrapper.v (9896, 2009-09-04)
SDRAMTEST\cpu_0_ociram_default_contents.mif (5878, 2009-09-04)
SDRAMTEST\cpu_0_rf_ram.mif (600, 2009-09-04)
SDRAMTEST\cpu_0_test_bench.v (38541, 2009-09-04)
SDRAMTEST\db (0, 2010-05-17)
SDRAMTEST\db\altsyncram_1l22.tdf (42550, 2009-09-04)
SDRAMTEST\db\altsyncram_c572.tdf (45629, 2009-09-04)
SDRAMTEST\db\altsyncram_e502.tdf (44915, 2009-09-04)
SDRAMTEST\db\altsyncram_kvb1.tdf (79465, 2009-09-04)
SDRAMTEST\db\decode_3oa.tdf (2269, 2009-09-04)
SDRAMTEST\db\decode_aoi.tdf (3471, 2009-09-04)
SDRAMTEST\db\mux_0kb.tdf (1592, 2009-09-04)
SDRAMTEST\db\SDRAMTest.(0).cnf.cdb (1777, 2009-09-04)
SDRAMTEST\db\SDRAMTest.(0).cnf.hdb (913, 2009-09-04)
SDRAMTEST\db\SDRAMTest.(1).cnf.cdb (15105, 2009-09-04)
SDRAMTEST\db\SDRAMTest.(1).cnf.hdb (5364, 2009-09-04)
SDRAMTEST\db\SDRAMTest.(10).cnf.cdb (15107, 2009-09-04)
SDRAMTEST\db\SDRAMTest.(10).cnf.hdb (5364, 2009-09-04)
SDRAMTEST\db\SDRAMTest.(100).cnf.cdb (15107, 2009-09-04)
SDRAMTEST\db\SDRAMTest.(100).cnf.hdb (5364, 2009-09-04)
SDRAMTEST\db\SDRAMTest.(101).cnf.cdb (2387, 2009-09-04)
SDRAMTEST\db\SDRAMTest.(101).cnf.hdb (640, 2009-09-04)
SDRAMTEST\db\SDRAMTest.(102).cnf.cdb (15107, 2009-09-04)
SDRAMTEST\db\SDRAMTest.(102).cnf.hdb (5364, 2009-09-04)
SDRAMTEST\db\SDRAMTest.(103).cnf.cdb (895, 2009-09-04)
SDRAMTEST\db\SDRAMTest.(103).cnf.hdb (497, 2009-09-04)
SDRAMTEST\db\SDRAMTest.(104).cnf.cdb (15107, 2009-09-04)
SDRAMTEST\db\SDRAMTest.(104).cnf.hdb (5364, 2009-09-04)
SDRAMTEST\db\SDRAMTest.(105).cnf.cdb (2098, 2009-09-04)
SDRAMTEST\db\SDRAMTest.(105).cnf.hdb (1049, 2009-09-04)
SDRAMTEST\db\SDRAMTest.(106).cnf.cdb (647, 2009-09-04)
SDRAMTEST\db\SDRAMTest.(106).cnf.hdb (533, 2009-09-04)
SDRAMTEST\db\SDRAMTest.(107).cnf.cdb (956, 2009-09-04)
... ...
/**************************************************************************
* Copyright 2004 Altera Corporation, San Jose, California, USA. *
* All rights reserved. All use of this software and documentation is *
* subject to the License Agreement located at the end of this file below.*
*************************************************************************/
/**************************************************************************
*
*
* Description
***************
* This is a test program which tests RAM and flash memory.
*
*
* Requirements
****************
* This is a "Hosted" application. According to the ANSI C standard, hosted
* applications can rely on numerous system-services (including properly-
* initialized device drivers and, in this case, STDOUT).
*
* When this program is compiled, code is added before main(), so that all
* devices are properly-initialized and all system-services (e.g. the
* library) are ready-to-use. In this hosted environment, all standard C
* programs will run.
*
* A hosted application (like this example) does not need to concern itself
* with initializing devices. As long as it only calls C Standard Library
* functions, a hosted application can run "as if on a workstation."
*
* An application runs in a hosted environment if it declares the function
* main(), which this application does.
*
* This software example requires a STDOUT component such as a UART or
* JTAG UART, a CFI flash component, and 2 RAM components (one for running
* the program, and one for testing) Therefore it can run on the following
* hardware examples:
*
* Nios Development Board, Stratix II Edition:
* - Standard (DMA RAM test will not run)
* - Full Featured
*
* DSP Development Board, Stratix II Edition:
* - Standard (DMA RAM test will not run)
* - Full Featured
*
* Nios Development Board, Stratix Edition:
* - Standard (DMA RAM test will not run)
* - Full Featured
*
* Nios Development Board, Stratix Professional Edition:
* - Standard (DMA RAM test will not run)
* - Full Featured
*
* Nios Development Board, Cyclone Edition:
* - Standard (DMA RAM test will not run)
* - Full Featured
*
* Nios Development Board, Cyclone II Edition:
* - Standard (DMA RAM test will not run)
* - Full Featured
*
* Note: This example will not run on the Nios II Instruction Set Simulator
*
* Peripherals Exercised by SW
*******************************
* The example's purpose is to test RAM and flash, as well as demonstrate the
* use of the DMA controller and flash API in NiosII.
*
* The RAM test routine performs the following operations:
* 1.) Tests the address and data lines for shorts and opens.
* 2.) Tests byte and half-word access.
* 3.) Tests every bit in the memory to store both '1' and '0'.
* 4.) Tests DMA access to the memory.
*
* IMPORTANT: The RAM test is destructive to the contents of the RAM. For this
* reason, you MUST assure that none of the software sections are located in
* the RAM being tested. This requires that code, data, and exception
* locations must all be in a memory seperate from the one being tested.
* These locations can be adjusted in Nios II IDE and SOPC Builder.
*
*
* The flash tests demonstrate the use of the flash programming API. After the
* flash device specified is opened, the test routine searches for a block in
* the device that is already erased. This prevents any overwriting of
* important data that may be programmed in flash. When an erased block is
* found, the routine performs a test of the flash API calls on that block.
*
* The following API functions are then run to test the flash interface:
*
* - alt_get_flash_info
* This function queries the flash device and collects various information
* about it. In the example, the results of this query are compared to what
* is expected, and an error is reported in the event of a mismatch.
* - alt_write_flash
* This function writes a specified number of bytes to the flash device.
* In the example, this function is called repeatedly in a loop to write a
* lengthy amount of data.
* - alt_read_flash
* This function reads a specified number of bytes of data from the flash
* device. In the example, alt_read_flash is used to read back and test
* all of the writing routines.
* - alt_erase_flash_block
* This function performs a block erase on the flash device.
* - alt_write_flash_block
* This function writes an erase block of data to the flash device.
*
* During the test, status and error information is passed to the user via
* printf's.
*
* Software Files
******************
* memtest.c - Main C file that contains all memory testing code in this
* example.
*
**************************************************************************/
近期下载者:
相关文件:
收藏者: