I am trying to use the timed output on a 4bit port, but when I am timestamping another port assignment as reference, the code seems to get stuck. Please see the code below:
Code: Select all
unsigned lr_mask = 0x80000000;
out buffered port:32 p_lrclk = XS1_PORT_1G;
out port p_my_lrclk = XS1_PORT_4D;
int count = 0;
while(1){
lr_mask = ~lr_mask;
p_lrclk <: lr_mask @ count; //<-- Here the code seems to get stuck
count += 500;
p_my_lrclk @ count <: lr_mask;
}
Best regards
John