Altera_Forum
Honored Contributor
20 years agoaccess the custom logic
FOr nios I
I have created a custome logic pwm for my project...SOPC assignes me address of 4A0 - 4AF address 00 - duty cycle address 01 - clock divide is it correct is program it in C such this way ? int *duty_cycle = (int *) 0x000004A0; // int *clock_divide = (int *) 0x000004A4; // int w = 10; int z = 1000; //assigned value to the inputs. *clock_divide = z; *duty_cycle = w; --------------------------------------------------------------------------------- i have tried this but htere is no output...any suggestions ?