Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

shift register mystery

Hi guys, I would like to implement a serial in serial out, parallel in parallel out combo shift register. Is it even possible, is it fantasy or is it just nonsense (please don't laugh if in fact it is) ? It's basically for a SPI , nothing inter-galactic. I also made a simple drawing to express better my idea. This is how I plan for it to work:

rx_buffer saves data of received packet (step 5 on picture). on the next clock pulse after saving rx data, tx_buffer loads data in the registers (step 1). one bit by one bit is clocked-out of the mosi. in the same time, new data is clocked-in replacing tx_buffer data. process continues packet after packet.

So I would like to know if this in fact can be done with vhdl. I am trying to code it but I'm having my doubts if it can happen. Thanks for all thoughts and replies.

11 Replies