Forum Discussion
Altera_Forum
Honored Contributor
15 years agoFor any component you need to have a clock interface. This clock interface you wire up your component clk and reset to. You can have multiple clocks for a single component by simply creating multiple clock interfaces.
Now for the other interfaces such as masters, slaves, sources, sinks, etc... you have to tell the tools what clock to associate the port to. So if I had a clock interface called "my_clock" and a slave interface called "my_slave" in component editor you would use "my_clock" as the associated clock for "my_slave". The tools will use this to figure out what clock domain your slave port is on so that it can determine if there is a clock crossing between it and the master hooked up to it. In component editor if you click on the templates you can see this for yourself if you add the slave template. You should see it create the interfaces and signals for a typical slave port with an associated clock.