OpenCores
URL https://opencores.org/ocsvn/theia_gpu/theia_gpu/trunk

Subversion Repositories theia_gpu

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /theia_gpu/branches/beta_2.0/regressions
    from Rev 218 to Rev 227
    Reverse comparison

Rev 218 → Rev 227

/single_core/test1_function_parameters.cp
0,0 → 1,15
#include "code_block_header.thh"
#define VP_DST_CODE_MEM (1<<31)
#define VP02 2
 
scalar SrcOffset = TEST1_FUNCTION_PARAMETERS_OFFSET,DstOffset;
DstOffset = (0x0 | TEST1_FUNCTION_PARAMETERS_SIZE | VP_DST_CODE_MEM );
copy_data_block < VP02 , DstOffset ,SrcOffset>;
//wait until enqueued block transfers are complete
while ( block_transfer_in_progress ) {}
start <VP02>;
exit ;
/single_core/test1_function_parameters.config
0,0 → 1,5
//This is file defines the passing criteria for the test
//Here 'x' stands for 1 or more bits with an 'x' value
//All right hand side values all assumed to be hexadecimal numbers
 
vp[2].r[66] == 0000aced 0000aced 0000aced
/single_core/test1_function_parameters.vp
0,0 → 1,52
//This test will check the use of function parameters within functions
 
function main()
{
 
vector arg1 = (1,2,3), arg2 = (4,5,6), arg3 = (7,8,9), arg4 = (10,11,12);
 
//Call the function and provide the parameters
MyFunction1( arg1, arg2, arg3, arg4 );
 
 
R66 = 0xaced;
 
exit ;
}
 
//----------------------------------------------------
function MyFunction1(a,b,c,d)
{
//check to see if the paramters are what we expected
//fail otherwise
vector Expected_a = (1,2,3);
if (a.xyz != Expected_a.xyz )
{
R66 = 0x01dead;
exit ;
}
 
vector Expected_b = (4,5,6);
if (b.xyz != Expected_b.xyz )
{
R66 = 0x02dead;
exit ;
}
 
vector Expected_c = (7,8,9);
if (c.xyz != Expected_c.xyz )
{
R66 = 0x03dead;
exit ;
}
vector Expected_d = (10,11,12);
if (d.xyz != Expected_d.xyz )
{
R66 = 0x04dead;
exit ;
}
 
 
return ;
}
//---------------------------------------------------

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.