utils

package
v0.0.0-...-86db037 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DEFAULT_TRANS_COUNT = map[string]interface{}{
		"GEN-50":   50.0,
		"GEN-100":  100.0,
		"GEN-500":  500.0,
		"GEN-1000": 1000.0,

		"GEN1-4004":     2300.0,
		"GEN1-8008":     3500.0,
		"GEN2-8080":     6000.0,
		"GEN2-8085":     9000.0,
		"GEN3-8086":     0.029 * 1e+06,
		"GEN3-80286":    0.134 * 1e+06,
		"GEN4-80386":    0.275 * 1e+06,
		"GEN4-80486":    1.25 * 1e+06,
		"GEN4-80486BL2": 1.4 * 1e+06,
		"GEN4-80486BL3": 1.4 * 1e+06,
		"GEN5-Pentium1": 3.1 * 1e+06,
		"GEN5-K6MMX":    4.3 * 1e+06,
		"GEN5-Pentium2": 7.5 * 1e+06,
		"GEN5-Pentium3": 28 * 1e+06,
		"GEN5-K7Athlon": 22 * 1e+06,
		"GEN5-Pentium4": 55 * 1e+06,

		"PL-Virtex":       70 * 1e+06,
		"PL-Virtex-E":     200 * 1e+06,
		"PL-Virtex-2":     350 * 1e+06,
		"PL-Virtex-2-pro": 430 * 1e+06,
		"PL-Virtex-4":     1000 * 1e+06,
		"PL-Virtex-5":     1100 * 1e+06,

		"PL-Stratix-4": 2500 * 1e+06,
		"PL-Stratix-5": 3800 * 1e+06,
		"PL-Arria-10":  5300 * 1e+06,
		"PL-Artix-7":   6800 * 1e+06,

		"PL-Virtex-7":   6800 * 1e+06,
		"PL-Stratix-10": 17000 * 1e+06,
		"PL-Virtex-us":  20000 * 1e+06,
		"PL-Everest":    50000 * 1e+06,

		"XC7Z015": []string{"URI", "PL-Artix-7"},

		"SRAM-1GB": 8 * 0.6 * 1e+09,
		"DDR3-1GB": []string{"URI", "SRAM-1GB"},

		"FLASH-1MB":   8 * 0.6 * 1e+06,
		"FLASH-128MB": 128 * 8 * 0.6 * 1e+06,
		"FLASH-1GB":   8 * 0.6 * 1e+09,
	}
)

Functions

func DeleteExtraSpace

func DeleteExtraSpace(s string) string

func ElapsedTime

func ElapsedTime() func()

func GetFValFromEVal

func GetFValFromEVal(evalue string) float64

GetFValFromEVal convert float from string

func GetPinsFromFp

func GetPinsFromFp(desc string, fp string) (int, error)

func GetTocOfIc

func GetTocOfIc(value string, desc string, fp string) (int, error)

func GetUaHeaders

func GetUaHeaders() string

func InitChromeBrowser

func InitChromeBrowser() (*webdriver.ChromeDriver, *webdriver.Session)

func IsCapAecFp

func IsCapAecFp(fp string, value string) bool

func IsCapTanFp

func IsCapTanFp(fp string) bool

func NamerulesProcess

func NamerulesProcess(part types.EBOMItem, propvalue string, propfootprint string, propclass map[string]string) bool

NamerulesProcess classify the part

func WebpartNormalize

func WebpartNormalize()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL