Hadir Khan
11/26/2020, 6:04 AM.c
file for this is coded as below:
#include "../../defs.h"
void main()
{
reg_mprj_io_0 = GPIO_MODE_USER_STD_OUTPUT;
reg_mprj_io_1 = GPIO_MODE_USER_STD_OUTPUT;
reg_mprj_io_2 = GPIO_MODE_USER_STD_OUTPUT;
reg_mprj_io_3 = GPIO_MODE_USER_STD_OUTPUT;
reg_mprj_io_4 = GPIO_MODE_USER_STD_OUTPUT;
reg_mprj_io_5 = GPIO_MODE_USER_STD_OUTPUT;
reg_mprj_io_6 = GPIO_MODE_USER_STD_OUTPUT;
reg_mprj_io_7 = GPIO_MODE_USER_STD_OUTPUT;
reg_mprj_xfer = 1;
while(reg_mprj_xfer == 1);
reg_la0_ena = 0xFFFFFFFE;
reg_la1_ena = 0xFFFFFFFF;
reg_la2_ena = 0xFFFFFFFF;
reg_la3_ena = 0xFFFFFFFF;
reg_la0_data = 0x00000001;
}
I am using the mprj_io[7:0] as outputs to be driven by the user. Then applying the configuration and after that using the LA bitfield 0 as an output and all others as input. Finally sending the data to the output. But this data is not received inside the user_proj_example module. I have attached the output waveform generated by running the test.Matt Venn
11/26/2020, 8:44 AMMatt Venn
11/26/2020, 8:44 AMHadir Khan
11/26/2020, 9:06 AMla_oen
nor the la_data_in
Matt Venn
11/26/2020, 9:06 AMMatt Venn
11/26/2020, 9:07 AMMatt Venn
11/26/2020, 9:07 AMHadir Khan
11/26/2020, 9:29 AMla_data_out
probe is the data being sent out from the user project.Hadir Khan
11/26/2020, 9:31 AMmprj
hierarchy shown in the diagram above is the user_project_wrapper