sign.v

来自「Log Shifter Gate Level Design using Veri」· Verilog 代码 · 共 47 行

V
47
字号
//############################################################################//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//   (C) Copyright Laboratory System Integration and Silicon Implementation//   All Right Reserved//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++////   2004 ICLAB(I) Course//   Lab01      : Structural Arithmetic Design//   Exercise_1 : 16-bits barrel shifter gate-level design//   Author     : Chih-Lung Chen (lung@si2lab.org)////++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++////   File Name   : SIGN.v//   Module Name : SIGN//   Release version : V1.0 (Release Date: 7-20-2004)////++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++// PURPOSE: Generate sign extension bit for shift right operation of//          signed data.//############################################################################module SIGN(  // Output Port  EXTEND,  // Input Port  SIGN, IN_MSB);//---------------------------------------------------------------------// INPUT AND OUTPUT DECLARATION//---------------------------------------------------------------------output EXTEND;  // for sign extensioninput  SIGN;    // decide sign or unsigninput  IN_MSB;  // MSB of input data//---------------------------------------------------------------------// GATE LEVEL DESCRIPTION OF COMBINATIONAL LOGIC//---------------------------------------------------------------------and #( 0.9:0.6:0.4 , 0.8:0.6:0.4 ) ( EXTEND, SIGN, IN_MSB );endmodule

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?