3 ms·
>> always @(posedge clk) Is there an option for bothedge clk?
by phkahler 5y ago
>> always @(posedge clk)
Is there an option for bothedge clk?
- sguav 5y agoalways @(posedge clk or negedge clk)
- acadiasprings 5y agoThis is the correct syntax, though many FPGA architectures don't support double edge registers
- sguav 5y agoTrue, I directly answered the syntax-related question, but talking about implementation this would be a bad description - be it FPGA or ASIC. As the parent's-parent comment said in other words, think circuit first.
- nrclark 5y agoIt's not synthesizable, but you could say "always @(clk)" as well.