BartlebyScrivener
Member level 5
- Joined
- Feb 8, 2012
- Messages
- 90
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 2,081
I am trying to write an SPI module in VHDL.
I have a signal ...
On the positive edge of my clock I wish to shift the data in the register and to count how many shifts have taken place
once the counter reaches 8, on the next negative edge I wish to populate/read all bits in parallel.
I have this working fine in simulation, but synthesis does not like the assignment of data on both the posotive and negative edge of a clock in the same process.
When I split the process into two separate processes, synthesis does not like me assigning the signal from two different processes.
Is my only alternative to create a new clock at twice the speed of the original so that I can do everything only on the positive edge of the new clock.
I have a signal ...
Code:
signal shiftreg std_logic_vector(7 downto 0)
On the positive edge of my clock I wish to shift the data in the register and to count how many shifts have taken place
once the counter reaches 8, on the next negative edge I wish to populate/read all bits in parallel.
I have this working fine in simulation, but synthesis does not like the assignment of data on both the posotive and negative edge of a clock in the same process.
When I split the process into two separate processes, synthesis does not like me assigning the signal from two different processes.
Is my only alternative to create a new clock at twice the speed of the original so that I can do everything only on the positive edge of the new clock.