亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? hspiceout.java

?? The ElectricTM VLSI Design System is an open-source Electronic Design Automation (EDA) system that c
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/* -*- tab-width: 4 -*- * * Electric(tm) VLSI Design System * * File: HSpiceOut.java * Input/output tool: reader for HSpice output (tr, pa, ac, sw, mt) * Written by Steven M. Rubin, Sun Microsystems. * * Copyright (c) 2004 Sun Microsystems and Static Free Software * * Electric(tm) is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * Electric(tm) is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Electric(tm); see the file COPYING.  If not, write to * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Boston, Mass 02111-1307, USA. */package com.sun.electric.tool.io.input;import com.sun.electric.database.hierarchy.Cell;import com.sun.electric.database.text.TextUtils;import com.sun.electric.tool.simulation.AnalogAnalysis;import com.sun.electric.tool.simulation.AnalogSignal;import com.sun.electric.tool.simulation.Analysis;import com.sun.electric.tool.simulation.ComplexWaveform;import com.sun.electric.tool.simulation.Stimuli;import com.sun.electric.tool.simulation.Waveform;import com.sun.electric.tool.simulation.WaveformImpl;import java.io.File;import java.io.IOException;import java.net.URL;import java.util.ArrayList;import java.util.Arrays;import java.util.HashMap;import java.util.List;/** * Class for reading and displaying waveforms from HSpice output. * This includes transient information in .tr and .pa files (.pa0/.tr0, .pa1/.tr1, ...) * It also includes AC analysis in .ac files; DC analysis in .sw files; * and Measurements in .mt files. * * While trying to debug the condition count handling, these test cases were observed: * CASE   VERSION  ANALYSIS   NUMNOI   SWEEPCNT   CNDCNT   CONDITIONS *  H01    9007       TR         0         4        1      bma_w *  H02    9007       TR        36        19        1      sweepv *  H03    9007       TR         2        30        1      MONTE_CARLO *                    DC       258        30        1      MONTE_CARLO *  H04    9007       TR         2         7        1      TEMPERATURE *                    DC         0         0        0 *                    AC         0         6        1      bigcap *  H05    9601       TR         0         0        0 *  H06    9601       TR         0         0        0 *  H07    9601       TR         2        25        3      data_tim, inbufstr, outloadstr (sweep header has 2 numbers) *  H08    9601       TR         4         3        2      ccdata, cc *                    AC         4         2        1      lpvar (***CRASHES***) *  H09    9601       TR         0         3        3      rdata, r, c (sweep header has 2 numbers) *                    AC         0         3        3      rdata, r, c (sweep header has 2 numbers) *  H10    9601       TR         0         4        8      rdata, r0, r1, r2, r3, r4, c0, c1 (sweep header has 7 numbers) *                    AC         0         4        8      rdata, r0, r1, r2, r3, r4, c0, c1 (sweep header has 7 numbers) */public class HSpiceOut extends Simulate{	private static final boolean DEBUGCONDITIONS = false;	/** true if tr/ac/sw file is binary */						private boolean isTRACDCBinary;	/** true if binary tr/ac/sw file has bytes swapped */		private boolean isTRACDCBinarySwapped;	/** the raw file base */									private String fileBase;	/** the "tr" file extension (tr0, tr1, ...): transient */	private String trExtension;	/** the "sw" file extension (sw0, sw1, ...): DC */			private String swExtension;	/** the "ic" file extension (ic0, ic1, ...): old DC */		private String icExtension;	/** the "ac" file extension (ac0, ac1, ...): AC */			private String acExtension;	/** the "mt" file extension (mt0, mt1, ...): measurement */	private String mtExtension;	/** the "pa" file extension (pa0, pa1, ...): long names */	private String paExtension;	private int binaryTRACDCSize, binaryTRACDCPosition;	private boolean eofReached;	private byte [] binaryTRACDCBuffer;	/**	 * Class to hold HSpice name associations from the .paX file	 */	private static class PALine	{		int	number;		String string;	}	private static class SweepAnalysis extends AnalogAnalysis {		double [][] commonTime; // sweep, signal		List<List<float[]>> theSweeps = new ArrayList<List<float[]>>(); // sweep, event, signal		private SweepAnalysis(Stimuli sd, AnalogAnalysis.AnalysisType type) {			super(sd, type, false);		}		protected Waveform[] loadWaveforms(AnalogSignal signal) {			int sigIndex = signal.getIndexInAnalysis();			Waveform[] waveforms = new Waveform[commonTime.length];			for (int sweep = 0; sweep < waveforms.length; sweep++) {				double[] times = commonTime[sweep];				List<float[]> theSweep = theSweeps.get(sweep);				Waveform waveform;				if (getAnalysisType() == ANALYSIS_AC) {					double[] realValues = new double[times.length];					double[] imagValues = new double[times.length];					for (int eventNum = 0; eventNum < realValues.length; eventNum++) {						float[] eventValues = theSweep.get(eventNum);						realValues[eventNum] = eventValues[sigIndex*2 + 1];						imagValues[eventNum] = eventValues[sigIndex*2 + 2];					}					waveform = new ComplexWaveform(times, realValues, imagValues);				} else {					double[] values = new double[times.length];					for (int eventNum = 0; eventNum < values.length; eventNum++)						values[eventNum] = theSweep.get(eventNum)[sigIndex + 1];					waveform = new WaveformImpl(times, values);				}				waveforms[sweep] = waveform;			}			return waveforms;		}	}	HSpiceOut() {}	/**	 * Method to read HSpice output files.	 * @param fileURL the URL to one of the output files.	 * @param cell the Cell associated with these HSpice output files.	 */	protected Stimuli readSimulationOutput(URL fileURL, Cell cell)		throws IOException	{		// create the Stimuli object		Stimuli sd = new Stimuli();		sd.setCell(cell);		// figure out file names		fileBase = fileURL.getFile();		trExtension = "tr0";		swExtension = "sw0";		icExtension = "ic0";		acExtension = "ac0";		mtExtension = "mt0";		paExtension = "pa0";		int dotPos = fileBase.lastIndexOf('.');		if (dotPos > 0)		{			String extension = fileBase.substring(dotPos+1);			fileBase = fileBase.substring(0, dotPos);			if (extension.startsWith("tr") || extension.startsWith("sw") || extension.startsWith("ic") ||				extension.startsWith("ac") || extension.startsWith("mt") || extension.startsWith("pa"))			{				trExtension = "tr" + extension.substring(2);				swExtension = "sw" + extension.substring(2);				icExtension = "ic" + extension.substring(2);				acExtension = "ac" + extension.substring(2);				mtExtension = "mt" + extension.substring(2);				paExtension = "pa" + extension.substring(2);			}		}		// the .pa file has name information		List<PALine> paList = readPAFile(fileURL);		// read Transient analysis data (.tr file)		addTRData(sd, paList, fileURL);		// read DC analysis data (.sw file)		addDCData(sd, paList, fileURL);		// read AC analysis data (.ac file)		addACData(sd, paList, fileURL);		// read measurement data (.mt file)		addMeasurementData(sd, fileURL);		// return the simulation data		return sd;	}	/**	 * Method to find the ".mt" file and read measurement data.	 * @param sd the Stimuli to add this measurement data to.	 * @param fileURL the URL to the ".tr" file.	 * @throws IOException	 */	private void addMeasurementData(Stimuli sd, URL fileURL)		throws IOException	{		// find the associated ".mt" name file		URL mtURL = null;		try		{			mtURL = new URL(fileURL.getProtocol(), fileURL.getHost(), fileURL.getPort(), fileBase + "." + mtExtension);		} catch (java.net.MalformedURLException e)		{		}		if (mtURL == null) return;		if (!TextUtils.URLExists(mtURL)) return;		if (openTextInput(mtURL)) return;		System.out.println("Reading HSpice measurements '" + mtURL.getFile() + "'");		AnalogAnalysis an = new AnalogAnalysis(sd, AnalogAnalysis.ANALYSIS_MEAS, false);		List<String> measurementNames = new ArrayList<String>();		HashMap<String,List<Double>> measurementData = new HashMap<String,List<Double>>();		String lastLine = null;		for(;;)		{			// get line from file			String nextLine = lastLine;			if (nextLine == null)			{				nextLine = lineReader.readLine();				if (nextLine == null) break;			}			if (nextLine.startsWith("$") || nextLine.startsWith(".")) continue;			String [] keywords = breakMTLine(nextLine, false);			if (keywords.length == 0) break;			// gather measurement names on the first time out			if (measurementNames.size() == 0)			{				for(int i=0; i<keywords.length; i++)					measurementNames.add(keywords[i]);				for(;;)				{					lastLine = lineReader.readLine();					if (lastLine == null) break;					keywords = breakMTLine(lastLine, true);					if (keywords.length == 0) { lastLine = null;   break; }					if (TextUtils.isANumber(keywords[0])) break;					for(int i=0; i<keywords.length; i++)						if (keywords[i].length() > 0)							measurementNames.add(keywords[i]);				}				for(String mName : measurementNames)				{					measurementData.put(mName, new ArrayList<Double>());				}				continue;			}			// get data values			int index = 0;			for(int i=0; i<keywords.length; i++)			{				if (keywords[i].length() == 0) continue;				String mName = measurementNames.get(index++);				List<Double> mData = measurementData.get(mName);				mData.add(new Double(TextUtils.atof(keywords[i])));			}			for(;;)			{				if (index >= measurementNames.size()) break;				lastLine = lineReader.readLine();				if (lastLine == null) break;				keywords = breakMTLine(lastLine, true);				if (keywords.length == 0) break;				for(int i=0; i<keywords.length; i++)				{					if (keywords[i].length() == 0) continue;					String mName = measurementNames.get(index++);					List<Double> mData = measurementData.get(mName);					mData.add(new Double(TextUtils.atof(keywords[i])));				}			}			lastLine = null;			continue;		}		// convert this to a list of Measurements		List<Double> argMeas = measurementData.get(measurementNames.get(0));		an.buildCommonTime(argMeas.size());		for (int i = 0; i < argMeas.size(); i++)			an.setCommonTime(i, argMeas.get(i).doubleValue());		List<AnalogSignal> measData = new ArrayList<AnalogSignal>();		for(String mName : measurementNames)		{			List<Double> mData = measurementData.get(mName);			double[] values = new double[mData.size()];			for(int i=0; i<mData.size(); i++) values[i] = mData.get(i).doubleValue();			// special case with the "alter#" name...remove the "#"			if (mName.equals("alter#")) mName = "alter";			AnalogSignal as = an.addSignal(mName, null, values);			measData.add(as);		}		closeInput();	}	/**	 * Method to parse a line from a measurement (.mt0) file.	 * @param line the line from the file.	 * @param continuation true if the line is supposed to be a continuation	 * after the first line.	 * @return an array of strings on the line (zero-length if at end).	 */	private String[] breakMTLine(String line, boolean continuation)	{		List<String> strings = new ArrayList<String>();		for(int i=1; ; )		{			if (line.length() <= i+1) break;			int end = i+17;			if (end > line.length()) end = line.length();			while (end < line.length() && line.charAt(end-1) != ' ') end++;			String part = line.substring(i, end).trim();//			if (i == 1)//			{//				// first token: make sure it is blank if a continuation//				if (continuation && part.length() > 0) return new String[0];//			}			if (part.length() > 0) strings.add(part.trim());			i = end;		}		int actualSize = strings.size();		String [] retVal = new String[actualSize];		for(int i=0; i<actualSize; i++) retVal[i] = strings.get(i);		return retVal;	}	/**	 * Method to find the ".tr" file and read transient data.	 * @param sd the Stimuli to add this transient data to.	 * @param fileURL the URL to the ".tr" file.	 * @throws IOException	 */	private void addTRData(Stimuli sd, List<PALine> paList, URL fileURL)		throws IOException	{		// find the associated ".tr" name file		URL swURL = null;		try		{			swURL = new URL(fileURL.getProtocol(), fileURL.getHost(), fileURL.getPort(), fileBase + "." + trExtension);		} catch (java.net.MalformedURLException e) {}		if (swURL == null) return;		if (!TextUtils.URLExists(swURL)) return;		// process the DC data		readTRDCACFile(sd, swURL, paList, Analysis.ANALYSIS_TRANS);	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久毛片a| 欧美三级电影在线观看| 免费成人在线影院| 亚洲在线视频网站| 亚洲免费观看高清在线观看| 亚洲欧洲另类国产综合| 自拍偷拍亚洲欧美日韩| 亚洲欧美一区二区三区孕妇| 洋洋av久久久久久久一区| 亚洲国产精品一区二区久久恐怖片 | 欧美一区二区三区的| 欧美色图天堂网| 91麻豆精品国产自产在线观看一区 | 国产精品电影院| 依依成人精品视频| 图片区小说区国产精品视频| 精品一区中文字幕| 成人黄色一级视频| 在线亚洲一区观看| 日韩三级精品电影久久久 | 不卡一区二区三区四区| 91麻豆国产精品久久| 欧美高清你懂得| 久久综合给合久久狠狠狠97色69| 国产精品网站导航| 五月天欧美精品| 夫妻av一区二区| 日本大香伊一区二区三区| 日韩天堂在线观看| 一色屋精品亚洲香蕉网站| 亚洲午夜电影在线观看| 国产一区二区视频在线播放| 91在线高清观看| 精品99一区二区| 亚洲成在线观看| 成人性生交大片免费看视频在线 | 精品国产乱码久久久久久图片 | 欧洲精品一区二区三区在线观看| 欧美日本在线看| 国产精品免费久久| 青青青伊人色综合久久| 91九色最新地址| 久久精品视频免费| 日韩在线一区二区| 91在线观看一区二区| 欧美大胆一级视频| 亚洲一区二区成人在线观看| 国产激情精品久久久第一区二区| 欧美久久一二区| 亚洲欧美偷拍卡通变态| 国产精品一二三四五| 欧美一区二区在线免费播放| 亚洲精品成人天堂一二三| 国产精品一区二区三区乱码| 欧美一区二区三区日韩| 亚洲第一福利一区| 91免费看`日韩一区二区| 国产亚洲欧美一级| 麻豆专区一区二区三区四区五区| 欧美中文字幕一区| 一区二区在线观看视频| 99视频一区二区三区| 国产欧美一区二区三区网站| 精品影院一区二区久久久| 欧美一区午夜视频在线观看| 肉肉av福利一精品导航| 欧美精品黑人性xxxx| 香蕉加勒比综合久久| 欧美最猛黑人xxxxx猛交| 亚洲三级小视频| 91丨porny丨户外露出| 中文字幕一区二区三区四区不卡| 国产传媒一区在线| 久久久蜜臀国产一区二区| 激情久久五月天| 久久视频一区二区| 国产一区二区三区不卡在线观看| 欧美成人vr18sexvr| 精品在线播放免费| 26uuu另类欧美| 国产成人aaa| 亚洲免费在线电影| 欧美日韩精品电影| 久久99精品久久久| 国产欧美精品一区二区色综合 | 精品一区二区久久久| 精品剧情v国产在线观看在线| 美国毛片一区二区| 国产日韩精品一区二区三区| 丁香天五香天堂综合| 亚洲乱码国产乱码精品精98午夜| 欧美在线影院一区二区| 免费国产亚洲视频| 国产性天天综合网| 91国产视频在线观看| 丝袜美腿高跟呻吟高潮一区| 精品乱码亚洲一区二区不卡| 成人一区在线观看| 亚洲尤物视频在线| 久久午夜色播影院免费高清| 91麻豆swag| 青青草原综合久久大伊人精品| 国产三级精品在线| 欧美视频一区二区三区| 久久91精品国产91久久小草 | 欧美高清视频在线高清观看mv色露露十八| 日韩精品每日更新| 中文字幕电影一区| 欧美一区二区三区的| 99热99精品| 久久精品999| 一区二区三区精品视频| 亚洲精品一区二区三区福利| 91成人免费网站| 国产jizzjizz一区二区| 免费在线观看精品| 一区二区三区蜜桃| 中文字幕av资源一区| 欧美一区二区在线播放| 99re这里都是精品| 国产一区二区不卡在线| 亚洲资源在线观看| 国产精品国产馆在线真实露脸 | 亚洲欧美另类图片小说| 欧美xxxxxxxx| 欧美婷婷六月丁香综合色| 国产mv日韩mv欧美| 国模娜娜一区二区三区| 亚洲成a人片综合在线| 1区2区3区欧美| 久久精品亚洲麻豆av一区二区| 3atv在线一区二区三区| 在线观看视频一区二区 | 5566中文字幕一区二区电影| 91视视频在线观看入口直接观看www| 精品一区二区三区影院在线午夜| 亚洲bt欧美bt精品777| 亚洲精品一二三区| 国产色91在线| 久久久青草青青国产亚洲免观| 日韩午夜电影在线观看| 91精品国产全国免费观看| 欧美日本一区二区三区四区| 在线观看91精品国产入口| 色婷婷综合久色| 色婷婷久久一区二区三区麻豆| 99视频一区二区| 色综合久久久久久久久久久| 91在线视频播放| 91麻豆精品一区二区三区| 暴力调教一区二区三区| 99久久免费视频.com| av一区二区三区在线| 91丨porny丨首页| 日本韩国欧美国产| 欧美日韩高清影院| 欧美一区二区三区在线观看视频 | 国产成人在线视频播放| 国产成人免费在线视频| 顶级嫩模精品视频在线看| 北岛玲一区二区三区四区| 91天堂素人约啪| 欧美日韩精品免费观看视频| 日韩亚洲欧美综合| 国产欧美一二三区| 亚洲丝袜另类动漫二区| 亚洲老司机在线| 日韩和欧美一区二区三区| 久久精品国产澳门| 懂色中文一区二区在线播放| 91影院在线免费观看| 欧美三级乱人伦电影| 日韩三级在线免费观看| 国产精品网友自拍| 亚洲午夜久久久| 国内精品伊人久久久久av影院| 高清国产一区二区| 欧美日韩精品福利| 国产人成亚洲第一网站在线播放 | 日韩不卡一区二区| 国产乱码精品一区二区三区av| 91视频观看视频| 91精品欧美综合在线观看最新| 久久久精品蜜桃| 亚洲一卡二卡三卡四卡无卡久久| 久久超级碰视频| 一本大道久久a久久精品综合 | 国产传媒欧美日韩成人| 欧洲av在线精品| 国产视频911| 日本不卡1234视频| 91玉足脚交白嫩脚丫在线播放| 欧美一区二区视频在线观看| 亚洲人成7777| 国产精品一二三在| 91精品国产黑色紧身裤美女| 一区二区三区影院| 粉嫩aⅴ一区二区三区四区五区 | 成人免费在线视频观看| 精品一区二区三区在线观看国产|