Multisim 7 Tutorial Creating Macros for Sub-circuits



Similar documents
Xilinx ISE. <Release Version: 10.1i> Tutorial. Department of Electrical and Computer Engineering State University of New York New Paltz

3. On the top menu bar, click on File > New > Project as shown in Fig. 2 below: Figure 2 Window for Orcad Capture CIS

Lab 1: Full Adder 0.0

Jianjian Song LogicWorks 4 Tutorials (5/15/03) Page 1 of 14

EXPERIMENT 4. Parallel Adders, Subtractors, and Complementors

How To Use Spss

VHDL Test Bench Tutorial

BitLocker To Go User Guide

Executive Summary. Table of Contents

What is a Mail Merge?

OrCAD Capture with PSpice and Allegro DE CIS with AMS Simulator. Describes how to create a PSpice Archive File with Capture

Mentor Tools tutorial Bold Browser Design Manager Design Architect Library Components Quicksim Creating and Compiling the VHDL Model.

isppac-powr1220at8 I 2 C Hardware Verification Utility User s Guide

Microsoft Excel 2013 Tutorial

This exhibit describes how to upload project information from Estimator (PC) to Trns.port PES (server). Figure 1 summarizes this process.

Two's Complement Adder/Subtractor Lab L03

After opening the Programs> Xilinx ISE 8.1i > Project Navigator, you will come to this screen as start-up.

Migrating to Excel 2010 from Excel Excel - Microsoft Office 1 of 1

Introduction to Microsoft Excel 2010

How To Use Multiisim On A Computer Or A Circuit Design Suite 10.0 (Aero)

Introduction: The Xcode templates are not available in Cordova or above, so we'll use the previous version, for this recipe.

EXCEL PIVOT TABLE David Geffen School of Medicine, UCLA Dean s Office Oct 2002

Merging Labels, Letters, and Envelopes Word 2013

Excel 2003 Tutorial I

Microsoft Office Access 2007 Training

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

Exporting/Importing Certificates with Adobe Acrobat

How to test and debug an ASP.NET application

QUICK START GUIDE. SG2 Client - Programming Software SG2 Series Programmable Logic Relay

Creating and Using Databases with Microsoft Access

Intellect Platform - Tables and Templates Basic Document Management System - A101

SOAL-SOAL MICROSOFT EXCEL 1. The box on the chart that contains the name of each individual record is called the. A. cell B. title C. axis D.

Creating Drawings in Pro/ENGINEER

Excel & Visual Basic for Applications (VBA)

Advanced Excel Charts : Tables : Pivots : Macros

MICROSOFT WORD TUTORIAL

computer (please download the software from the official website if there is no CD available).

MICROSOFT ACCESS 2003 TUTORIAL

Microsoft Access Calendar Scheduling Database/Template Installation Instructions

HyperXpress Tutorial Series Lesson Two: Using HyperXpress to print files on Disk

PCB Design with Altium: Schematic Entry, Libraries, and Designing Components

From the list of Cooperative Extension applications, choose Contacts Extension Contact Management System.

Creating PDF Forms in Adobe Acrobat

Introduction to Microsoft Access 2003

Monitor file integrity using MultiHasher

ADMINISTRATORS GUIDE EPISUITE 6

ParishSOFT Remote Installation

Microsoft Excel Basics

Quartus II Introduction Using VHDL Design

KiCad Step by Step Tutorial

Lesson 2. From computer to USB

EasyC. Programming Tips

DiskPulse DISK CHANGE MONITOR

14.1. bs^ir^qfkd=obcib`qflk= Ñçê=emI=rkfuI=~åÇ=léÉåsjp=eçëíë

BLE Series. Data setting software MEXE02 OPERATING MANUAL. Tabel of contents 1 Synchronization with the driver Monitor function...

Taco Hydronic System Solutions Quick Start Guide

Pharmacy Affairs Branch. Website Database Downloads PUBLIC ACCESS GUIDE

Newsletter Sign Up Form to Database Tutorial

Microsoft Picture Manager. Picture Manager

State of Ohio DMS Solution for Personnel Records Training

Create a PDF File. Tip. In this lesson, you will learn how to:

How to Back Up and Restore an ACT! Database Answer ID 19211

Tutorial #7A: LC Segmentation with Ratings-based Conjoint Data

VIA / JMicron RAID Installation Guide

POS Connector Installation and Setup Guide

Intellect Platform - The Workflow Engine Basic HelpDesk Troubleticket System - A102

CNC Transfer. Operating Manual

MICROSOFT OUTLOOK 2010 WORK WITH CONTACTS

RS232 Board datasheet

HP LaserJet P2050 Series Printer Print tasks

Task Force on Technology / EXCEL

Getting Started with Excel Table of Contents

Folder Management in Outlook for Macintosh

Component, Model and Library Concepts. Components - the Basic Building Blocks. Modified by on 2-Jul-2014

Access 2007 Creating Forms Table of Contents

E-Loader Operation Manual

Using Excel for Business Analysis: A Guide to Financial Modelling Fundamentals

Instructions for creating a data entry form in Microsoft Excel

IPRO Viewer. Installation

Creating a Database in Access

Excel Formulas & Graphs

Embroidery Fonts Plus ( EFP ) Tutorial Guide Version

Company Setup 401k Tab


Adding Digital Signature and Encryption in Outlook

There are several ways of creating a PDF file using PDFCreator.

Lab 1: Introduction to Xilinx ISE Tutorial

Index ScaleNet v1.0 Installation (Windows 95, 98) 1 ScaleNet v1.0 Installation (Windows XP) 3 ScaleNet v1.0 Configuration 6 Initiating Session 7

RV 12 Electrical Schematic Instructions

Hands On Exercise Using the SHA Detail Model (Bridge)

Excel 2007 Basic knowledge

Graphing Parabolas With Microsoft Excel

How to Make the Most of Excel Spreadsheets

Page Numbering for a Thesis or Dissertation

1 System requirements (minimum)

Configuration Manager

How To Send An Encrypted In Outlook 2000 (For A Password Protected ) On A Pc Or Macintosh (For An Ipo) On Pc Or Ipo (For Pc Or For A Password Saf ) On An Iphone Or

Getting Started With SPSS

Transcription:

Multisim 7 Tutorial Creating Macros for Sub-circuits It s a good practice to organize functionally related parts of a design into manageable pieces. Then the design is made as a hierarchical design. And those manageable pieces are referred to as Macros. This design method makes your design easier not only for readers to understand, but also for yourself to maintain. Plus, this increases the reusability of each functional part of the design because it can be referenced by more than one circuit. It also ensures consistency across a group of designers if each designer will be dealing with part of the design. As the size of the design grows, the advantages of this concept exhibit more and more. There are two ways to build the circuit hierarchically. The one we are interested is using hierarchical blocks. And the other is sub-circuit. They are quite similar except that subcircuits are saved with the original circuit and hierarchical blocks are individual circuit files that are referenced from a higher-level circuit file as explained below. When using hierarchical blocks, the "block" remains a separate schematic file which can be edited. The connection between a block and the circuit in which it is placed is an active link. That is, if you place the contents of circuit A as a hierarchical block of circuit B, you can open circuit A separately, make any changes necessary, and those changes are automatically reflected in circuit B and in any other circuits that use circuit A. While this is not true for the design if it s composed of sub-circuits. The way to create a hierarchical block is quite similar to creating a regular circuit file except you have to make interfaces for the block to communicate with the outside environment where it s nesting. These interfaces can be done by placing the hierarchical block connectors for input/output ports. Following example creates a hierarchical block (Macro) for a half adder. It illustrates the procedure of wrapping a circuit in a hierarchical block. Any Macro can be created by the similar procedure. As stated above, the hierarchical block is quite similar to the regular circuit except the I/O ports. So we may first place the components as needed on a new sheet, as shown in Figure 1. Before wire the components up, create the I/O interfaces for the hierarchical block circuit since it will be used as part of a higher-level circuit. The I/O interfaces can be built by Hierarchical Block/Sub-circuit Block (HB/SB) connectors. To place an HB/SB connector, click Place on the menu bar, then select HB/SB Connector option, as shown in Figure 2. Figure 3 shows the components and HB/SB connectors on the same sheet.

Figure 1. Place Components on New Sheet Figure 2. Place HB/SB Connectors

Figure 3. Component and HB/SB Connectors The orientations of both components and connectors can be changed. To do so, select the objects, click on Edit, and then select Flip Horizontal. It s going to make the output port connectors easier for wiring, as what Figure 4 shows. Picture 4. Flip or Rotate Components or Connectors

To gain more readability, components, connectors, and hierarchical blocks can be labeled as some particular name. For example, instead of naming IO3, you may prefer to call the output Sum which makes more sense to the readers. Double click the part you want to change label, e.g. connector IO3, the properties dialog window pops up as shown in Figure 5. The Reference ID can be changed to any name you like. Click OK to apply the change. Figure 5. Change the Reference ID of Components or Macros or Connectors Figure 6. Wire up Components and Connectors

Upon this point, all components, connectors, or hierarchical blocks shall be wired up to finalize building the hierarchical block circuit. Figure 6 shows the schematic before it is finally saved. Whereas it doesn t hurt to save your file frequently to avoid accidentally losing all of your work. Save the file as a regular circuit file. Figure 7 shows the Save As dialog window. Then you are done with creating a hierarchical block which can be referenced by any other circuits for any number of times. Note both regular circuit files and hierarchical block circuit files will be saved with the extension of.ms7 that is the particular file extension for Multisim 7. But sometimes it might happen that you want to reference a hierarchical block circuit file which is in nonmultisim 7 format, such as.msm file which is for Multisim 2001. The message Invalid or old file format will appear and the referencing action is cancelled. If you really wish to use a.msm file, you must open it using the File/Open command which will convert it to Multisim 7 format. Save the file with the same name, but with the.ms7 extension. You can now select this new file when placing a hierarchical block. Figure 7. Save the Hierarchical Block Circuit To create a higher-level circuit, you need to open a new circuit file where the created hierarchical block will be referenced. Save the file in the same directory as the hierarchical block circuit file, before the block is referenced. Otherwise, the system will force you to do so anyway. To place a hierarchical block on the higher-level circuit, click the shortcut button shown in Figure 9. The dialog box shown in Figure 10 will come up. Normally the directory will be your current working directory. You can find the hierarchical block circuit file in the directory. Select the desired file and click Open.

Figure 8. Place Hierarchical Block Figure 9. Find the Hierarchical Block Circuit File in the Same Directory A ghost image of the circuit will appear. It can be placed as other components. In Figure 10, you can see the hierarchical block has exactly the same I/O ports. The footprints can be modified for your convenience. But this is not recommend because this may end up to be tricky. The hierarchical blocks will also have a reference ID which you can change as you want.

Figure 10. Place an Instance of the Hierarchical Block Figure 11. Use Other Devices to Test the Created Hierarchical Block

As you expected, the hierarchical block can be used just like other regular components. You can put the hierarchical block into a test bench to verify the functionality of the block circuit, as shown in Figure 11. You can use it and other components to create another higher-level hierarchical block circuit as well. In Figure 11, since the hierarchical block is a half adder, when A = 0 and B = 1, LED2 lights up indicating a logic 1 at the Sum output. The hierarchical block can be modified if it needs to. Double click the hierarchical block that you want to make modification. The dialog window shown in Figure 12 will pop up. Click on the Edit Subcircuit button. This will take you back to the hierarchical block circuit. After you are done, save the modified hierarchical block circuit. The changes will be automatically reflected in the instances in the circuit where it s referenced. Note: Although shouldn t happen theoretically, if you modified the I/O ports layout in the hierarchical block circuit, it won t be reflected in the higher-level circuit. It sometimes even results in malfunction. If this happens, you have to replace the hierarchical block by the modified file in the higher-level circuit. Figure 12. Edit the Hierarchical Block Last but not trivial, all of the circuit files involved in a design have to be saved in the same directory. So that when the top-level circuit is running, it s able to find the circuit files for the hierarchical blocks in the current directory. Since all related files will be activated, this may take a while.