Forum Discussion
Altera_Forum
Honored Contributor
16 years agoBREAKING DEVELOPMENT:
if i pull the control port out of the scaler, and just let it do it's thing default, it corrects the skew problem. Question: what am I missing with the scaler? I'm executing these lines ONLY for the scaler to initialise: void scaler_enable(void){
iowr( scaler_base, control, vip_stop );
iowr( scaler_base, scaler_reg_size_x, l2_x_size );
iowr( scaler_base, scaler_reg_size_y, l2_y_size );
iowr( scaler_base, control, vip_go );
}
and for readback:
alt_printf( "\nscaler registers:\n" );
alt_printf( " control: %x\n", iord( scaler_base, control ) );
alt_printf( " status: %x\n", iord( scaler_base, status ) );
alt_printf( " size x: %x\n", iord( scaler_base, scaler_reg_size_x ) );
alt_printf( " size y: %x\n", iord( scaler_base, scaler_reg_size_y ) ); where: #define scaler_reg_control 0
# define scaler_reg_status 1
# define scaler_reg_size_x 2
# define scaler_reg_size_y 3