📄 m3s088ct.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 //// Post-Scaler// Copyright Mentor Graphics Corporation and Licensors 1998.// V1.000// m3s088ct.v// M320C50 CALU Post-scaler.module m3s088ct (ACC, PostScalerShift, RegCntrl, DMAMode, DataWrite);//******************************************************************* ////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 [31:0] ACC; input [3:0] PostScalerShift; input RegCntrl, DMAMode; output [15:0] DataWrite; tri [15:0] DataWrite; reg [22:0] PostScalerIp; reg [18:0] PostScalerA; reg [16:0] PostScalerB; reg [15:0] PostScalerOp;// Post-scaler input selectoralways @(ACC or PostScalerShift) if (PostScalerShift[3]) PostScalerIp = ACC[31:9]; else PostScalerIp = {ACC[15:0],7'b0}; // Accumulator post scaleralways @(PostScalerIp or PostScalerShift)begin if (~PostScalerShift[2]) PostScalerA = PostScalerIp[22:4]; else PostScalerA = PostScalerIp[18:0]; if (~PostScalerShift[1]) PostScalerB = PostScalerA[18:2]; else PostScalerB = PostScalerA[16:0]; if (~PostScalerShift[0]) PostScalerOp = PostScalerB[16:1]; else PostScalerOp = PostScalerB[15:0];endassign DataWrite = (RegCntrl & ~DMAMode) ? PostScalerOp : 16'bZ;endmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -