📄 m3s040ct.v
字号:
//******************************************************************* ////IMPORTANT NOTICE ////================ ////Copyright Mentor Graphics Corporation 1996 - 1998. All rights reserved. ////This file and associated deliverables are the trade secrets, ////confidential information and copyrighted works of Mentor Graphics ////Corporation and its licensors and are subject to your license agreement ////with Mentor Graphics Corporation. //// ////These deliverables may be used for the purpose of making silicon for one ////IC design only. No further use of these deliverables for the purpose of ////making silicon from an IC design is permitted without the payment of an ////additional license fee. See your license agreement with Mentor Graphics ////for further details. If you have further questions please contact ////Mentor Graphics Customer Support. //// ////This Mentor Graphics core (m320c50eng v1999.010) was extracted on ////workstation hostid 800059c1 Inventra //// 16-bit Incrementer// Copyright Mentor Graphics Corporation and Licensors 1998.// V1.001// m3s040ct// M320C50 16-bit look-ahead carry incrementer.module m3s040ct (DataIn, Carry, DataOut);//******************************************************************* ////IMPORTANT NOTICE ////================ ////Copyright Mentor Graphics Corporation 1996 - 1998. All rights reserved. ////This file and associated deliverables are the trade secrets, ////confidential information and copyrighted works of Mentor Graphics ////Corporation and its licensors and are subject to your license agreement ////with Mentor Graphics Corporation. //// ////These deliverables may be used for the purpose of making silicon for one ////IC design only. No further use of these deliverables for the purpose of ////making silicon from an IC design is permitted without the payment of an ////additional license fee. See your license agreement with Mentor Graphics ////for further details. If you have further questions please contact ////Mentor Graphics Customer Support. //// ////This Mentor Graphics core (m320c50eng v1999.010) was extracted on ////workstation hostid 800059c1 Inventra // input [15:0] DataIn; input Carry; output [15:0] DataOut; reg NPropagate4, NPropagate8, NPropagate12; reg Carry4, Carry8, Carry12; wire [15:0] DataOut;// 4-bit incrementersm3s041ct U1 (DataIn[3:0], Carry, DataOut[3:0]);m3s041ct U2 (DataIn[7:4], Carry4, DataOut[7:4]);m3s041ct U3 (DataIn[11:8], Carry8, DataOut[11:8]);m3s041ct U4 (DataIn[15:12], Carry12, DataOut[15:12]);// Generate not carry propagate signals for the lower 3 4-bit slicesalways @(DataIn)begin NPropagate4 = ~(DataIn[0] & DataIn[1] & DataIn[2] & DataIn[3]); NPropagate8 = ~(DataIn[4] & DataIn[5] & DataIn[6] & DataIn[7]); NPropagate12 = ~(DataIn[8] & DataIn[9] & DataIn[10] & DataIn[11]);end// Look-ahead carry generationalways @(Carry or NPropagate4 or NPropagate8 or NPropagate12)begin Carry4 = ~(NPropagate4 | ~Carry); Carry8 = ~(NPropagate8 | NPropagate4 | ~Carry); Carry12 = ~(NPropagate12 | NPropagate8 | NPropagate4 | ~Carry);endendmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -