On Jan 20, 12:19*pm, Jonathan Bromley <jonathan.brom...@MYCOMPANY.com>
wrote:
> * q <= '0' when rst = '1' else FUNC(d,q) when rising_edge(clk);
Yep, that'll work, assuming q is not an output port.
This is one of those interesting situations where the RTL (in a
process) can describe a behavior without having to read an output, but
the implementation must read the output, or a buffered version thereof
(clock enables are usually done with a multiplexer on the register
input, with one of the mux inputs being the register's output).
Andy
|