Hello, I am trying to configure the LA to send a 1...
# shuttle
h
Hello, I am trying to configure the LA to send a 1 bit signal used to reset the design instantiated inside the user_proj_example. The
.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.
m
what's on la_data_out?
this code works for me
h
@Matt Venn yes the la_data_out is getting a value from my project but my project is not getting any value from the CPU neither the
la_oen
nor the
la_data_in
m
la_data_out is from cpu to project
la_data_in is from project to cpu
check my code linked in the other thread.
h
@Matt Venn yes if you view the probes from the mprj hierarchy inside gtkwave then the
la_data_out
probe is the data being sent out from the user project.
the
mprj
hierarchy shown in the diagram above is the user_project_wrapper