Search in sources :

Example 1 with Key

use of de.neemann.digital.core.element.Key in project Digital by hneemann.

the class ClockIntegratorARTIX7 method insertMMCMClock.

private void insertMMCMClock(HDLCircuit model, Params p, HDLPort clock) throws HDLException {
    ElementAttributes attr = new ElementAttributes().set(new Key<>("cascading", 0), p.isCascading()).set(new Key<>("D_PARAM", 0), p.d).set(new Key<>("M_PARAM", 0), p.m).set(new Key<>("DIV_PARAM", 0), p.divider).set(new Key<>("DIV4_PARAM", 0), p.divider4).set(new Key<>("PERIOD_PARAM", 0.0), clkInPeriod);
    model.integrateClockNode(clock, new HDLNodeBuildIn("MMCME2_BASE", attr, name -> 1));
}
Also used : de.neemann.digital.hdl.model2(de.neemann.digital.hdl.model2) ElementAttributes(de.neemann.digital.core.element.ElementAttributes) ClockIntegratorGeneric(de.neemann.digital.hdl.model2.clock.ClockIntegratorGeneric) ClockInfo(de.neemann.digital.hdl.model2.clock.ClockInfo) HDLClockIntegrator(de.neemann.digital.hdl.model2.clock.HDLClockIntegrator) Key(de.neemann.digital.core.element.Key) ArrayList(java.util.ArrayList) ElementAttributes(de.neemann.digital.core.element.ElementAttributes) Key(de.neemann.digital.core.element.Key)

Aggregations

ElementAttributes (de.neemann.digital.core.element.ElementAttributes)1 Key (de.neemann.digital.core.element.Key)1 de.neemann.digital.hdl.model2 (de.neemann.digital.hdl.model2)1 ClockInfo (de.neemann.digital.hdl.model2.clock.ClockInfo)1 ClockIntegratorGeneric (de.neemann.digital.hdl.model2.clock.ClockIntegratorGeneric)1 HDLClockIntegrator (de.neemann.digital.hdl.model2.clock.HDLClockIntegrator)1 ArrayList (java.util.ArrayList)1