2025年6月8日 星期日

Install Synopsys HSpice








Install Synopsys HSPICE

1. Download

Please download the newest version of HSPICE, the file name is 
hspice_2024.09-sp1_linux.tgz

2. Extract/Install

Please use root permission to run:

# tar xfva hspice_2024.09-sp1_linux.tgz -C /opt/EDA

This procedure will extract and install hspice to /opt/EDA/hspice
directory.

3. Config Env.

3.1 We need to add more info to our bashrc_eda. Please all the following 
contents:

Hspice="/opt/EDA/hspice"
Hspicebin="/opt/EDA/hspice/cur/hspice/bin"

PATH="/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$Hspicebin"

LM_LICENSE_FILE=26585@lstn

export PATH LM_LICENSE_FILE

3.2 Modify hspice.ini

# cd /opt/EDA/hspice/cur/hspice
/opt/EDA/hspice/cur/hspice # cat hspice.ini

* READING FILE:  /usr/cad/synopsys/hspice/cur/hspice/W-2024.09-SP1/hspice/hspice.ini
.prot
.option
+ search=/usr/cad/synopsys/hspice/cur/hspice/W-2024.09-SP1/hspice/parts/ad
+ search=/usr/cad/synopsys/hspice/cur/hspice/W-2024.09-SP1/hspice/parts/behave
+ search=/usr/cad/synopsys/hspice/cur/hspice/W-2024.09-SP1/hspice/parts/bjt
+ search=/usr/cad/synopsys/hspice/cur/hspice/W-2024.09-SP1/hspice/parts/burr_brn
+ search=/usr/cad/synopsys/hspice/cur/hspice/W-2024.09-SP1/hspice/parts/comlinear
+ search=/usr/cad/synopsys/hspice/cur/hspice/W-2024.09-SP1/hspice/parts/dio
+ search=/usr/cad/synopsys/hspice/cur/hspice/W-2024.09-SP1/hspice/parts/fet
+ search=/usr/cad/synopsys/hspice/cur/hspice/W-2024.09-SP1/hspice/parts/lin_tech
+ search=/usr/cad/synopsys/hspice/cur/hspice/W-2024.09-SP1/hspice/parts/pci
+ search=/usr/cad/synopsys/hspice/cur/hspice/W-2024.09-SP1/hspice/parts/signet
+ search=/usr/cad/synopsys/hspice/cur/hspice/W-2024.09-SP1/hspice/parts/ti
+ search=/usr/cad/synopsys/hspice/cur/hspice/W-2024.09-SP1/hspice/parts/tline
+ search=/usr/cad/synopsys/hspice/cur/hspice/W-2024.09-SP1/hspice/parts/xilinx
**** add any user options, parameters, model includes,
**** subcircuit includes or libraries here

.unprot


We can see that the hspice directory settin is not /opt/EDA/hspice. Thus we 
need to fix it. Please run the following command:

# export INST_DIR1=/opt/EDA/hspice/cur
# /opt/EDA/hspice/cur/hspice/bin/config

This step is very important because if you don't modify hspice.ini. It may not
find some files when you run simulation.



4. We can run

$ source /opt/EDA/bashrc_eda

to load our EDA environment setting

Then run

$ hspice

                              PrimeSim HSPICE (R)

            Version W-2024.09-SP1 for linux64 - Dec 02, 2024 9404553

                    Copyright (c) 1986 - 2024 Synopsys, Inc.
   This software and the associated documentation are proprietary to Synopsys,
 Inc. This software may only be used in accordance with the terms and conditions
 of a written license agreement with Synopsys, Inc. All other use, reproduction,
   or distribution of this software is strictly prohibited.  Licensed Products
     communicate with Synopsys servers for the purpose of providing software
    updates, detecting software piracy and verifying that customers are using
    Licensed Products in conformity with the applicable License Key for such
  Licensed Products. Synopsys will use information gathered in connection with
    this process to deliver software updates and pursue software pirates and
                                   infringers.
..
 system
  -version          Outputs PrimeSim HSPICE version information
  -include_last     Insert the specified file in the end of the input file
  -include_first    Insert the specified file in the beginning of the input file
  -info             Outputs PrimeSim HSPICE supported TMI information
  -container        Runs Primesim HSPICE in container

Enter input file name:

This means that HSPICE is wating for your input file (SPICE netlist). If you
have an inv.sp. You can run:

$ hspice inv.sp 

to run simulation directory.

Using: /opt/EDA/hspice/2024.09-sp1/hspice/linux64/hspice inv.sp
 ****** PrimeSim HSPICE -- W-2024.09-SP1 linux64 (Dec 01 2024 9404553) ******
  Copyright (c) 1986 - 2025 by Synopsys, Inc. All Rights Reserved.
  This software and the associated documentation are proprietary
  to Synopsys, Inc. This software may only be used in accordance
  with the terms and conditions of a written license agreement with
  Synopsys, Inc. All other use, reproduction, or distribution of
  this software is strictly prohibited.
  Input File: inv.sp                                                            
  Command line options: /opt/EDA/hspice/2024.09-sp1/hspice/linux64/hspice inv.sp
  Start time: Fri Mar 21 10:33:45 2025

..

           peak memory used        488.35 megabytes
           total cpu time            0.03 seconds
           total elapsed time        1.20 seconds
           job started at     10:33:45 03/21/2025
           job ended   at     10:33:46 03/21/2025

>info:         ***** hspice job concluded
           job total runtime         1.20 seconds


 lic: Release hspice token(s) 
 lic: total license checkout elapse time:        1.16(s)

We can see that hspice job concluded which means our hspice is running 

successfully.



沒有留言:

張貼留言