PeterUK2009
Member level 4
- Joined
- Jun 21, 2009
- Messages
- 72
- Helped
- 2
- Reputation
- 4
- Reaction score
- 2
- Trophy points
- 1,288
- Activity points
- 2,117
Hi! I know this may sound very simple but pls stay with me!
I want to write my interface from the 0, so I get data parallel and want to sent it serial, well, I decided to do it with standard blocks so I used a shift register, I used block to divided to clock and the top for now is my control interface, I took the clock divided (Let called clock/38) on my main block very simple stuff I have a stage machine to control the interface an counter ticked by clock/38 to move a stage on the stage machine. All works but I have to make the load stage wait to clock stage on the clock/38 so you guess it now, if not let carry on.
All works but if I want to write constantly in the interface I get one clock/38 circle error.
The thing is my shifting block clock is fitted it with clock/38 I though it was going to be easy as you only need to count X number of clock and you are out. But it also need one clock as its a register to load the data in.
What is the best way to sort this out?
Is the solution to have two domain in the shift register? on to shift and one to load as signal in, and the use the signal "Write" to load into register?
Thanks,
I want to write my interface from the 0, so I get data parallel and want to sent it serial, well, I decided to do it with standard blocks so I used a shift register, I used block to divided to clock and the top for now is my control interface, I took the clock divided (Let called clock/38) on my main block very simple stuff I have a stage machine to control the interface an counter ticked by clock/38 to move a stage on the stage machine. All works but I have to make the load stage wait to clock stage on the clock/38 so you guess it now, if not let carry on.
All works but if I want to write constantly in the interface I get one clock/38 circle error.
The thing is my shifting block clock is fitted it with clock/38 I though it was going to be easy as you only need to count X number of clock and you are out. But it also need one clock as its a register to load the data in.
What is the best way to sort this out?
Is the solution to have two domain in the shift register? on to shift and one to load as signal in, and the use the signal "Write" to load into register?
Thanks,