fpga/x359/test_scripts/mem_test.php File Reference

Go to the source code of this file.

Functions

 send_i2c ($a, $d)
 receive_i2c ($a)
 receive_i2c_4 ($width, $bus, $a, $raw=0)
 receive_i2c_n ($width, $bus, $a, $raw=0)
 send_i2c_4 ($width, $bus, $a, $d, $raw=0)
 send_i2c_4_nc ($a, $d)
 dcm_reset ($width, $bus, $raw=0)
 ramb_check ($width, $bus, $raw=0)
 ddr_init ($width, $bus, $raw=0)
 ddr_page_write ($width, $bus, $sa, $raw=0)
 ddr_page_read ($width, $bus, $rra, $raw=0)

Variables

 $width = 16
 $bus = 0
 $raw = 0
 $phase_shift = 0
 $row_adr = 0x3ff
 $N = 0
 $N_shifts = 1


Function Documentation

dcm_reset ( width,
bus,
raw = 0 
)

Definition at line 113 of file mem_test.php.

References $bus, $raw, $width, and send_i2c_4().

ddr_init ( width,
bus,
raw = 0 
)

Definition at line 151 of file mem_test.php.

References $bus, $data, $raw, $width, receive_i2c_4(), and send_i2c_4().

ddr_page_read ( width,
bus,
rra,
raw = 0 
)

Definition at line 227 of file mem_test.php.

References $bus, $i, $raw, $width, receive_i2c_n(), and send_i2c_4_nc().

ddr_page_write ( width,
bus,
sa,
raw = 0 
)

Definition at line 187 of file mem_test.php.

References send_i2c_4_nc().

ramb_check ( width,
bus,
raw = 0 
)

Definition at line 120 of file mem_test.php.

References $bus, $data, $i, $raw, $width, receive_i2c_4(), and send_i2c_4().

receive_i2c ( a  ) 

Definition at line 47 of file mem_test.php.

References $data, $i2c, $v, and dev.

receive_i2c_4 ( width,
bus,
a,
raw = 0 
)

Definition at line 57 of file mem_test.php.

References $bus, $data, $i2c, $v, $width, dev, and raw.

receive_i2c_n ( width,
bus,
a,
raw = 0 
)

Definition at line 73 of file mem_test.php.

References $bus, $data, $i2c, $v, $width, dev, and raw.

send_i2c ( a,
d 
)

*************************************************************************** ! FILE NAME : mem_test.php ! DESCRIPTION: tests DDR memory on the 10359 board ! Copyright (C) 2008 Elphel, Inc ! -----------------------------------------------------------------------------** ! ! This program is free software: you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation, either version 3 of the License, or ! (at your option) any later version. ! ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with this program. If not, see <http://www.gnu.org/licenses/>. ! -----------------------------------------------------------------------------** !

Log
mem_test.php,v
! Revision 1.4 2008/06/23 08:11:58 dzhimiev ! 1. added more scripts for 10359 board ! ! Revision 1.2 2008/06/16 07:43:58 dzhimiev ! mcontr address range changed from 0x0820-0x082F to 0x0840-0x085F (for making extra channels) ! ! Revision 1.2 2008/05/01 20:27:08 dzhimiev ! reformatted a little ! ! Revision 1.1 2008/04/23 01:55:49 dzhimiev ! 1. added x359 files to src lists ! 2. x359 read/write DDR ! 3. x359 3 channels mux directly to out ! 4. x359 one channel through DDR and another directly frames switching at out !

Definition at line 39 of file mem_test.php.

References $d, $i2c, $res, and dev.

send_i2c_4 ( width,
bus,
a,
d,
raw = 0 
)

Definition at line 89 of file mem_test.php.

References $bus, $d, $i2c, $res, $width, dev, and raw.

send_i2c_4_nc ( a,
d 
)

Definition at line 105 of file mem_test.php.

References $d, $i2c, $res, and dev.


Variable Documentation

$bus = 0

Definition at line 254 of file mem_test.php.

$N = 0

Definition at line 259 of file mem_test.php.

$N_shifts = 1

Definition at line 260 of file mem_test.php.

$phase_shift = 0

Definition at line 257 of file mem_test.php.

$raw = 0

Definition at line 255 of file mem_test.php.

$row_adr = 0x3ff

Definition at line 258 of file mem_test.php.

$width = 16

Definition at line 253 of file mem_test.php.


Generated on Thu Aug 7 16:20:01 2008 for elphel by  doxygen 1.5.1