Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

help with register to register timing constraint

Hello,

I'm stuck on what is most likely a simple problem. I'm trying to constrain a signal in my design, but I'm not sure exactly how. I've tried a couple different ways and figured it would be better to just ask. I have a start signal that goes high on the falling edge of a pin. This start signal clocks another register in my design. When I run compilation I get a warning attached below.

https://www.alteraforum.com/forum/attachment.php?attachmentid=9126

Because this signal clocks anther process it determines it to be a clock. How is this normally handled? This is for an I2C module.

Also, is my approach for constraining SDA and SCL correct? I am assuming they will run at 100k so I've constrained them as follows.

create_clock -name SCL_clk -period 10000 [get_ports sm5882_air_data_sensor_0_scl_export]

create_clock -name SDA_clk -period 10000 [get_ports sm5882_air_data_sensor_0_sda_export]

I've also attached my HDL. * Had to zip up my .sdc file because the forum would not let me upload it as is for some reason.

Thanks,

Rob

14 Replies