Forum Discussion
Altera_Forum
Honored Contributor
13 years agoI followed Your suggestions and try to create a cross clock domain using small fifo. And now I'm facing a problem with catching pio value. Let's assume i have 4 pio 32 input ports, and 4 pio output ports. All PIO ports are mapped in memory, and were connected to two 128bit signals, which I tought were holding the real state of the port, and they did so, before i connected the 128 bit signal to the cross_clock_fifo. After i connected the fifo all i see in memory is 0xffffffff. I figure out, that there's no D flipflop - so the data couldn't be catched nowhere. I added then a process which i thought would catch data at 128 bit port. But it isn't. It works only for the first write to the memory. After second write all i read is 0xfffffff.
How can I make this data be available at the memory, and also pass it to the cross_clock_fifo? changing '0'->'1' at enc_in_ctrl_write=>in_port_to_the_pio_enc_in_ctrl(0) should add pio datas to fifo.