Class HardwareUtil


  • public class HardwareUtil
    extends Object
    • Method Detail

      • getModulesFromHwModel

        public static <T extends HwModule> List<T> getModulesFromHwModel​(Class<T> targetClass,
                                                                         Amalthea model)
      • getModulesFromHWStructure

        public static <T extends HwModule> List<T> getModulesFromHWStructure​(Class<T> targetClass,
                                                                             HwStructure structure)
      • getAllProcessingUnitsForProcessingUnitDefinition

        public static List<ProcessingUnit> getAllProcessingUnitsForProcessingUnitDefinition​(Amalthea model,
                                                                                            ProcessingUnitDefinition puDef)
      • getMemoryAccessLatenciesCycles

        public static Map<Memory,​Long> getMemoryAccessLatenciesCycles​(Amalthea model,
                                                                            RuntimeUtil.TimeType timeType)
      • getMemoryAccessLatencyTime

        public static Map<Memory,​Time> getMemoryAccessLatencyTime​(Amalthea model,
                                                                        RuntimeUtil.TimeType timeType)
      • getAccessElementsToDestination

        public static List<HwAccessElement> getAccessElementsToDestination​(HwDestination dest,
                                                                           Amalthea model)
      • calculateLatency

        public static Long calculateLatency​(IDiscreteValueDeviation latency,
                                            RuntimeUtil.TimeType timeType)
      • getMinDataRateOfHwAccessPath

        public static DataRate getMinDataRateOfHwAccessPath​(HwAccessPath path)
        Computes the minimum data rate of an access path
      • getFrequencyOfModule

        public static Frequency getFrequencyOfModule​(HwModule module)
        Returns the frequency of a specific module
      • getFrequencyOfModuleInHz

        public static long getFrequencyOfModuleInHz​(HwModule module)
        Returns the frequency of a specific module in Hertz