Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHow to make bidirectional bus in SystemVerilog
I have a bidirectional 8 bit bus for communicating between my CPLD and my main CPU. At the top level module I declared this like this (left out details of other IO stuff): module top ( inout [7...
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- You probably want to use always_latch as that is closer to the actual behavior. It's OK if cpldbus has not stabilized, the block will continue to execute passing the value on to outbit. --- Quote End --- Now that confuses me a bit. I thought that each of those constructs would create different hardware. always_latch would create level sensitive gates and always_ff would create edge sensitive gates. Am I way off base there?