/******************************************************************************/
/* */
/* 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. */
/* */
/******************************************************************************/
/***************************************************************************
****************************************************************************
***
*** Program File: @(#)add3.v
***
****************************************************************************
****************************************************************************/
// @(#)add3.v 1.1 4/8/92
//
// **************************************************************
// add3 -- 3 to 2 compression adder cell
// **************************************************************
![[Up: column0 aA]](v2html-up.gif)
![[Up: column2 aA]](v2html-up.gif)
![[Up: column2 aB]](v2html-up.gif)
![[Up: column4 aB]](v2html-up.gif)
![[Up: column4 aH]](v2html-up.gif)
![[Up: column6 aB]](v2html-up.gif)
![[Up: column6 aK]](v2html-up.gif)
![[Up: column8 aC]](v2html-up.gif)
![[Up: column8 aK]](v2html-up.gif)
![[Up: column10 aC]](v2html-up.gif)
![[Up: column10 aK]](v2html-up.gif)
![[Up: column12 aD]](v2html-up.gif)
![[Up: column12 aI]](v2html-up.gif)
![[Up: column14 aD]](v2html-up.gif)
![[Up: column14 aM]](v2html-up.gif)
![[Up: column16 aE]](v2html-up.gif)
![[Up: column16 aM]](v2html-up.gif)
![[Up: column18 aD]](v2html-up.gif)
![[Up: column18 aJ]](v2html-up.gif)
![[Up: column20 aF]](v2html-up.gif)
![[Up: column22 aF]](v2html-up.gif)
![[Up: column22 aL]](v2html-up.gif)
![[Up: column24 aG]](v2html-up.gif)
![[Up: column24 aL]](v2html-up.gif)
![[Up: column25 aG]](v2html-up.gif)
![[Up: column26 aG]](v2html-up.gif)
module add3
(s, c, cout, x1, x2, x3, cin);
//prop CELLCLASS "LEAF"
//prop AREA 0.0 0.0 100.0 100.0
//prop FEEDTHROUGH "feed0" 90.0 0.0
//prop FEEDTHROUGH "feed1" 70.0 0.0
//prop FEEDTHROUGH "feed2" 50.0 0.0
//prop FEEDTHROUGH "feed3" 30.0 0.0
//prop FEEDTHROUGH "feed4" 10.0 0.0
output s
;
//prop LOCATION 60.0 0.0 60.0 0.0 "MET2"
output c
;
//prop LOCATION 40.0 0.0 40.0 0.0 "MET2"
output cout
;
//prop LOCATION 0.0 50.0 0.0 50.0 "MET1"
input x1
;
//prop LOCATION 80.0 100.0 80.0 100.0 "MET2"
input x2
;
//prop LOCATION 60.0 100.0 60.0 100.0 "MET2"
input x3
;
//prop LOCATION 40.0 100.0 40.0 100.0 "MET2"
input cin
;
//prop LOCATION 100.0 50.0 100.0 50.0 "MET1"
// cout
or (or1, x1, x2);
and (cout, or1, x3);
// s1
xor (xor1, x1, x2);
xor (s1, xor1, x3);
// S
xor (s, s1, cin);
// c1
and (and1, x1, x2);
// c
and (and3, s1, cin);
not (s1_, s1);
and (and4, s1_, and1);
or (c, and3, and4);
endmodule
This page: |
Created: | Thu Aug 19 12:00:13 1999 |
| From: |
../../../sparc_v8/ssparc/fpu/fp_fpm/rtl/add3.v
|