DrivExpress Installation Guide Doc No: MOUTBD0673 Revision: D Date: Jan. 31. 2014
2012-2014 MACNICA AMERICAS, Inc. MACNICA, Inc. All rights reserved. 1. This document contains information that is proprietary to MACNICA AMERICAS, Inc. and MACNICA, Inc. You may reprint or reproduce this document in whole or in part for internal business purposes only, provided that this entire notice is preserved in all copies. In reprinting or reproducing any part of this document, the recipient agrees that every reasonable effort shall be made to prevent the unauthorized use and distribution of the proprietary information. 2. All information contained in this document is intended to ensure proper understanding of the product callded DrivExpress. MACNICA AMERICAS, Inc. and MACNICA, Inc. reserve the right to make changes in contents contained in this document without prior notice, and you should, in all cases, consult MACNICA AMERICAS, Inc. or MACNICA, Inc. to determine whether any changes have been made. 3. MACNICA AMERICAS, Inc. and MACNICA, Inc. shall make no warranty or no liability with regard to any representation or other affirmation of fact contained in this document. 4. To the extent permitted by applicable law, this document is being provided on an "as-is" basis without any warranties of any kind respecting this document materials, either express or implied, including but not limited to any warranty of design, merchantability, fitness for a particular purpose, or non-infringement. 5. In no event shall MACNICA AMERICAS, Inc. and MACNICA, Inc. be liable for any damage whatsoever arising out of the use of or inability to use this document, even if MACNICA AMERICAS, Inc. and MACNICA, Inc. have been advised of the possibility of such damages. 6. The terms and conditions governing the sale and licensing of the product are set forth in written agreements between MACNICA AMERICAS, Inc. or MACNICA, Inc. and its customers. MACNICA AMERICAS, Inc. 380 Stevens Ave., Suite 206 Solana Beach, CA 92075 Website: http://www.macnica-na.com MACNICA, Inc. 1-6-3 Shin-Yokohama, Kouhoku-ku, Yokohama, 222-8561 Website: http://mssp.macnica.co.jp ii DrivExpress Installation Guide
1 1 2 DrivExpress 2 3 Windows 3 4 Linux 11 5 17 6 19 DrivExpress Installation Guide iii
iv DrivExpress Installation Guide
1 Microsoft Windows 7 * 1 *2 Red Hat Enterprise Linux 5, 6 CentOS 5, 6 FPGA Altera Quartus II 12.1, 13.0, 13.1 Verilog Mentor Graphics ModelSim /Questa ModelSim-Altera Starter Edition (ASE) 10.0d ModelSim-Altera Edition (AE) 10.0d ModelSim PE/SE/DE 10.1a Questa Advanced Simulator 10.1a Cadence NC-Sim 10.20-s131, 11.10-s080, 12.20-s005 Synopsys VCS *3 F-2011.12, G-2012.09, G-2012.09-SP1 Java SE Runtime Environment 5 * 4 Python 2.7 * 5 *1 Microsoft, Windows, Windows 7 Microsoft Corporation *2 Windows Mentor Graphics ModelSim/Questa *3 Synopsys VCS 32-bit 64-bit *4 JRE DirvExpress *5 Python Python Software Foundation DrivExpress Python 2.7.3 DrivExpress Python 3.x.x 2.7.x DrivExpress Installation Guide 1
2 DrivExpress Download DrivExpress DrivExpress Java Windows Linux OS Verilog 32 64 DrivExpress Verilog ModelSim- Altera ModelSim 32 DrivExpress NC-Sim 64 NC-Sim 64 DrivExpress 64 Verilog 32 32 DrivExpress 2 DrivExpress Installation Guide
3 Windows Windows Mentor Graphics ModelSim/Questa Windows 7 32-bit java -jar drivexpress-1.3.0_32bit_vsim.jar 64-bit java -jar drivexpress-1.3.0_64bit_vsim.jar 1. Language Selection japanese OK 2. DrivExpress Installation Guide 3
3. DrivExpress 4. DrivExpress 32-bit/64-bit Python 4 DrivExpress Installation Guide
5. a DrivExpress 32-bit/64-bit Python 2.7 b DrivExpress 32-bit/64-bit Python 2.7 Python 2.7 DrivExpress Installation Guide 5
6. DrivExpress a Python 2.7 Python 7 b Python 2.7 DrivExpress 9 6 DrivExpress Installation Guide
7. Python 2.7.3 a Next b Python 2.7.3 Next DrivExpress Installation Guide 7
c Next a 8 DrivExpress Installation Guide
b Finish 8. DrivExpress Next DrivExpress Installation Guide 9
9. DrivExpress DrivExpress 10. 10 DrivExpress Installation Guide
4 Linux Mentor Graphics ModelSim/Questa DrivExpress 32-bit java -jar drivexpress-1.3.0_32bit_vsim.jar 64-bit java -jar drivexpress-1.3.0_64bit_vsim.jar 1. Language Selection japanese OK 2. DrivExpress Installation Guide 11
3. DrivExpress 4. DrivExpress 32-bit/64-bit Python 12 DrivExpress Installation Guide
5. a DrivExpress 32-bit/64-bit Python 2.7 b DrivExpress 32-bit/64-bit Python 2.7 Python 2.7 DrivExpress Installation Guide 13
6. DrivExpress a Python 2.7 Python 7 b Python 2.7 DrivExpress 8 14 DrivExpress Installation Guide
7. Python 2.7.3 8. DrivExpress DrivExpress DrivExpress Installation Guide 15
9. 16 DrivExpress Installation Guide
5 DrivExpress Verilog DrivExpress Python test_main.py Verilog drivexpress_lic_enc.bin 1. 2. URL E-mail URL DrivExpress DrivExpress DrivExpress 3. 4. DrivExpress drivexpress_lic_enc.bin DrivExpress DrivExpress 5.1 Simulation Control license_file DrivExpress drivexpress_lic_enc.bin DrivExpress Python test_main.py For Windows from dxpress import * # Create simulation control instance. sim = SimControl() # Use / instead of \ character as directory separator sim.license_file = "c:/drivexpress/drivexpress_lic_enc_xxx.bin" DrivExpress Installation Guide 17
For Linux from dxpress import * # Create simulation control instance. sim = SimControl() # Use / character as directory separator sim.license_file = "/opt/drivexpress/drivexpress_lic_enc_xxx.bin" 18 DrivExpress Installation Guide
6 DrivExpress Altera Stratix IV GX FPGA DMA Chaining DMA <DrivExpress Instrallation>/sample : DrivExpress $DRIVEXPRESS_ROOTDIR $DRIVEXPRESS_ROOTDIR DrivExpress DRIVEXPRESS_ROOTDIR DrivExpress $DRIVEXPRESS_ROOTDIR/sample/design Verilog build_run.do *6 build_run.sh *7 ALTERA Quartus II PCI Express Gen2x4 DMA Python Verilog *8 Verilog $DRIVEXPRESS_ROOTDIR/sample/design/script test_main.py test_main.py test_pcie_chain_dma_*.py drivexpress_lic_enc.bin $DRIVEXPRESS_ROOTDIR *6 Mentor Graphics ModelSim/Questa TCL *7 Cadence NC-Sim, Synopsys VCS bash *8 $DRIVEXPRESS_ROOTDIR/sample/design/quartus1*/gen2x4/pcie_proj_examples/chaining_dma/drivexpress_tb DrivExpress Installation Guide 19
6.1 Mentor Graphics ModelSim/Questa 1. a Windows ALTERA Quartus II QUARTUS_ROOTDIR QUARTUS_ROOTDIR ALTERA Quartus II b Linux 3 QUARTUS_ROOTDIR : ALTERA Quartus II PYTHONHOME : Python 2.7 LD_LIBRARY_PATH : Python 2.7 $ export QUARTUS_ROOTDIR=/opt/altera/12.1sp1/quartus $ export PYTHONHOME=$DRIVEXPRESS_ROOTDIR/python2.7 $ export LD_LIBRARY_PATH=$PYTHONHOME/lib:$LD_LIBRARY_PATH 2. $DRIVEXPRESS_ROOTDIR/sample/design TCL build_run.do a GUI ModelSim/Questa GUI Transcript $DRIVEXPRESS_ROOTDIR/sample/design do build_run.do b build_run.do vsim $ cd $DRIVEXPRESS_ROOTDIR/sample/design $ vsim < build_run.do PCI Express Gen2x8 build_run.do 2 set pcie_gen 2 set pcie_lane 4 20 DrivExpress Installation Guide
6.2 Cadence NC-Sim 1. a 32/64 3 QUARTUS_ROOTDIR : ALTERA Quartus II PYTHONHOME : Python 2.7 LD_LIBRARY_PATH : Python 2.7 $ export QUARTUS_ROOTDIR=/opt/altera/12.1sp1/quartus $ export PYTHONHOME=$DRIVEXPRESS_ROOTDIR/python2.7 $ export LD_LIBRARY_PATH=$PYTHONHOME/lib:$LD_LIBRARY_PATH b 64 64 32/64 LD_LIBRARY_PATH NC-Sim 64 C++ NC-Sim 12.2 or 11.1 $ export CDS_INST_DIR=/opt/cadence/12.2 # Replace 12.2 with 11.1 when NC-Sim 11.1 $ export LD_LIBRARY_PATH=$CDS_INST_DIR/tools/cdsgcc/gcc/install/lib64: $LD_LIBRARY_PATH NC-Sim 10.2 $ export CDS_INST_DIR=/opt/cadence/10.2 $ export LD_LIBRARY_PATH=$CDS_INST_DIR/tools/systemc/gcc/64bit/install/lib64: $LD_LIBRARY_PATH 2. $DRIVEXPRESS_ROOTDIR/sample/design build_run.sh $ cd $DRIVEXPRESS_ROOTDIR/sample/design $./build_run.sh PCI Express Gen2x8 -g -l Gen2x8 $ cd $DRIVEXPRESS_ROOTDIR/sample/design $./build_run.sh -g 2 -l 8 -h DrivExpress Installation Guide 21
6.3 Synopsys VCS 1. 3 QUARTUS_ROOTDIR : ALTERA Quartus II PYTHONHOME : Python 2.7 LD_LIBRARY_PATH : Python 2.7 $ export QUARTUS_ROOTDIR=/opt/altera/12.1sp1/quartus $ export PYTHONHOME=$DRIVEXPRESS_ROOTDIR/python2.7 $ export LD_LIBRARY_PATH=$PYTHONHOME/lib:$LD_LIBRARY_PATH 2. $DRIVEXPRESS_ROOTDIR/sample/design build_run.sh $ cd $DRIVEXPRESS_ROOTDIR/sample/design $./build_run.sh PCI Express Gen2x8 -g -l Gen2x8 $ cd $DRIVEXPRESS_ROOTDIR/sample/design $./build_run.sh -g 2 -l 8 -h 22 DrivExpress Installation Guide
6.4 Essentials or Professional Edition ********************************** DRIVEXPRESS TEST RESULT <PASSED> ---------------------------------- Total Errors : 0 Total Warnings : 0 Total Informations : 102 ********************************** Starter Edition ********************************** DRIVEXPRESS TEST RESULT <PASSED> ---------------------------------- Total Errors : 0 Total Warnings : 3 Total Informations : 103 ********************************** DrivExpress Python Verilog DrivExpress $DRIVEXPRESS_ROOTDIR/doc DrivExpress Installation Guide 23