Forum Discussion
Yamada1
Occasional Contributor
3 years agoSynthesis results and different behavior
I made an SPI interface circuit, but the SCLK output is always 'H' and it doesn't work. It would be helpful if you could give me some hint to solve it. The survey results are as follows. 1) MOSI...
- 3 years ago
1) Yes. There are many VHDL attributes like this. Just googled this: https://redirect.cs.umbc.edu/portal/help/VHDL/attribute.html
2) Not sure what you mean here, but if your clock is not coded correctly, then nothing is going to work correctly because it will never get to the if checks.
3) rising_edge is part of std_logic, so as long as you're using that library, it will work and is recommended.
RichardT_altera
Super Contributor
3 years agoThe code can be compiled correctly. However, I recommend reviewing your design in the RTL viewer to ensure that it has the desired functionality.
Could you please share your testbench and the simulation result with me? I would like to understand what is meant by "[SCLK output is always 'H']."
Best Regards,
Richard Tan