Altera_Forum
Honored Contributor
14 years agoClock signal source should drive only clock input ports
I'm getting this message as a warning:
Warning (308040): (Medium) Rule C104: Clock signal source should drive only clock input ports. Found 2 nodes related to this rule. My design has a clk input and a wr input. They are asynchronous so I synced the wr using the clk as follows: always_ff @ (posedge clk) wr_d1 <= wr; In another part of the code I want to use the main clock but use the write signal as a qualifier to the operation, like so:
always_ff @ (posedge clk)
begin
if (wr_d1 && (register_addr == ASMI_OPCODE)) wrote_opcode <= 1'b1;
else wrote_opcode <= 1'b0;
end
I really need the wrote_opcode signal to be asserted for only one clk cycle, so this process block needs to be triggered by the clk. So how can I set the wrote_opcode for just one clk cycle only when the wr_d1 has been asserted?