Altera_Forum
Honored Contributor
17 years agoSetup time constraints
Hi all,
I am currently doing some maintanence on a Flex 10K design which was done many years ago. The deisgn is too implement a VME bus controller which replaces the VIC068A chip from cypress which was taken of the market some time ago. I need to make sure the design functions at 64 MHz as opposed to the 50 MHz at which it currently runs. Anyway I´ve just started and I´ve seen many timing warnings (at 50 MHz)reported in the classic timing analyzer (clock setup, tco, tsu). The design is a real nightmare to understand, as its way to complicated, without comments and poorly coded. Many of the timing warnings are are explained by the poor coding but the original designer has also placed 1000´s of timing constraints, many of which were set too aggressively it seems and cannot be met by Quartus. I have not been given permission to redo the design so I´m stuck with trying to improve the current design. Initially I am concered with the Tsu warnings which appear on input pins. These warnings are due to contraints put in place by the original designer (other company) too aggresively. I am thinking that it is not nessesery to have these constraints and that I can safely remove them. As the interface is asynchrous and each signal that is read in from the outside is passed through a couple of flip flops. Therefore if the nessesery pre cautions are taken to avoid metastability, it should be ok to remove these containts? I understand what setup time is, but what I do not understand is how it can change, and why it would have been nessesery to place these constraints in the first place. I see warnings which have an actual tsu of 11.700 ns. -7.700 ns(slack) 4.000 ns (Required) 11.700 ns (actual) a2] (From) ic068:vic068_inst_1|vme_if:vme_if_inst_1|vme_in:vme_in_inst_1|i_addr_cntr[2] (To) clk64m (To clock) 11.700 ns seems like a real long time to me? and some are up at 17.2 ns. If i change parts of the code (or clock speed) it also affecs the setup up time. Could someone please explain to me why this is. At the moment I can´t get my head around it. I understood that Tsu meant that the signal had to be present at the input pin a specified amount of time before a clk edge but I think there are also some other basics that I haven´t grasped. I be grateful if someone could take a minute to explain why I see what i have described above. Many thanks for your help.