/******************************************************************************/
/* */
/* Copyright (c) 1999 Sun Microsystems, Inc. All rights reserved. */
/* */
/* The contents of this file are subject to the current version of the Sun */
/* Community Source License, microSPARCII ("the License"). You may not use */
/* this file except in compliance with the License. You may obtain a copy */
/* of the License by searching for "Sun Community Source License" on the */
/* World Wide Web at http://www.sun.com. See the License for the rights, */
/* obligations, and limitations governing use of the contents of this file. */
/* */
/* Sun Microsystems, Inc. has intellectual property rights relating to the */
/* technology embodied in these files. In particular, and without limitation, */
/* these intellectual property rights may include one or more U.S. patents, */
/* foreign patents, or pending applications. */
/* */
/* Sun, Sun Microsystems, the Sun logo, all Sun-based trademarks and logos, */
/* Solaris, Java and all Java-based trademarks and logos are trademarks or */
/* registered trademarks of Sun Microsystems, Inc. in the United States and */
/* other countries. microSPARC is a trademark or registered trademark of */
/* SPARC International, Inc. All SPARC trademarks are used under license and */
/* are trademarks or registered trademarks of SPARC International, Inc. in */
/* the United States and other countries. Products bearing SPARC trademarks */
/* are based upon an architecture developed by Sun Microsystems, Inc. */
/* */
/******************************************************************************/
// @(#)mulselctl.v 1.1 4/7/92
//
![[Up: MultiplierLSB m13]](v2html-up.gif)
![[Up: MultiplierLSB m12]](v2html-up.gif)
![[Up: MultiplierLSB m11]](v2html-up.gif)
module MulSelCtl
(notMult, Shifted, Pos, Zero, ACI);
input [2:0] notMult
;
output Shifted
, Zero
, Pos
, ACI
;
//
// Mult 0 0 0
// ACI is Actual Carry In
// Shifted is 1
ME_XOR2_B xnr7 (notMult[1], notMult[0], Shifted);
/* Feedthrough */
/* wire Negative = Mult[2]; */
con1 g00 (notMult[2], Pos);
ME_INV_A g01 (notMult[2], Negative
);
// assert ACI if subtracting
ME_OR2_B cz1 (notMult[0], notMult[1], notSwig
);
ME_AND2 cz2 (Negative, notSwig, ACI); // 2 gates
//ME_INV_B g02 (Negative, notMult2);
// all ones or all zeros gives zero
ME_OR3_B nzr5 (notMult[2], notMult[0], notMult[1], notPos0
);
ME_NAND3 nzr6 (notMult[2], notMult[1], notMult[0], notNeg0
);
ME_NAND2_B nzr8 (notNeg0, notPos0, Zero);
endmodule
| This page: |
Created: | Thu Aug 19 12:03:41 1999 |
| From: |
../../../sparc_v8/ssparc/fpu/fp_ctl/rtl/mulselctl.v
|