m3s088ct.v
来自「这是16位定点dsp源代码。已仿真和综合过了」· Verilog 代码 · 共 77 行
V
77 行
//******************************************************************* ////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 + =
减小字号Ctrl + -
显示快捷键?