Forum Discussion
Altera_Forum
Honored Contributor
14 years agowrite master and waitrequest
hi, i have a custom memory mapped write master.
I want initialize a piece of the memory with all zeros, and after that, write a sub-part of these piece of memory with data coming from a fifo. So i have 2 sources of data, a constant (zeros) and the fifo out. So i need a multiplexer, i did an asynch mux because of the waitrequest signal behaviour. writedata <= fifo_out when init= '0' else (others=> '0'); Is there a way to do a registered mux? i can't manage the latency with waitrequest signal1 Reply
- Altera_Forum
Honored Contributor
You don't need an asynchronous mux. The write data vector needs to be sent at the same time than the write control signal and the address. If all of them are registered from the same place it will work. Then you only continue writing to other addresses when you read a waitrequest signal at 0.