Altera_Forum
Honored Contributor
11 years agoEmbed sdc constraint in vhdl design file - help needed
Hi everyone!
I'm trying to set a sdc constraint into one of my vhdl design files. I want to constrain a muliticycle path inside that entity and I want it to go with the design file to reuse it in other projects. I tried to follow the instructions I found here (http://altera.info/support/kdb/solutions/rd05162013_635.html) and in the Ouartus II Handbook (where the link in the text points to), but I can't get it to work. My search for other useful documentation was without results. What I would do to set that constraint in a .sdc file is:set_multicycle_path -setup -end -from -to 2 What I actually did in my design file is the following: entity MyEntity is
port
(
(...)
);
end entity;
architecture rtl of MyEntity is
(...)
signal MySignal : std_logic;
attribute altera_attribute: string;
attribute altera_attribute of MySignal : signal is "-name SDC_STATEMENT set_multicycle_path -from {*SourceEntity:SourceEntity_Inst|*} -to {*TargetEntity:TargetEntity_Inst|*} -setup -end 2";
begin
(...)
SourceEntity_Inst : SourceEntity
port map(
(...)
InPort => SomeSignal,
OutPort => MySignal
);
TargetEntity_Inst : TargetEntity
port map(
(...)
InPort => MySignal,
OutPort => SomeOtherSignal
);
end rtl; But TimeQuest still finds that failing path. Any hints? I would be very grateful! Thanks in advance, Sören