⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aaa.v

📁 本实例是学习fpga的入门程序 希望大家喜欢
💻 V
字号:
/*******************************************************************************
*     This file is owned and controlled by Xilinx and must be used             *
*     solely for design, simulation, implementation and creation of            *
*     design files limited to Xilinx devices or technologies. Use              *
*     with non-Xilinx devices or technologies is expressly prohibited          *
*     and immediately terminates your license.                                 *
*                                                                              *
*     XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS"            *
*     SOLELY FOR USE IN DEVELOPING PROGRAMS AND SOLUTIONS FOR                  *
*     XILINX DEVICES.  BY PROVIDING THIS DESIGN, CODE, OR INFORMATION          *
*     AS ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE, APPLICATION              *
*     OR STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS                *
*     IMPLEMENTATION IS FREE FROM ANY CLAIMS OF INFRINGEMENT,                  *
*     AND YOU ARE RESPONSIBLE FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE         *
*     FOR YOUR IMPLEMENTATION.  XILINX EXPRESSLY DISCLAIMS ANY                 *
*     WARRANTY WHATSOEVER WITH RESPECT TO THE ADEQUACY OF THE                  *
*     IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OR           *
*     REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE FROM CLAIMS OF          *
*     INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS          *
*     FOR A PARTICULAR PURPOSE.                                                *
*                                                                              *
*     Xilinx products are not intended for use in life support                 *
*     appliances, devices, or systems. Use in such applications are            *
*     expressly prohibited.                                                    *
*                                                                              *
*     (c) Copyright 1995-2006 Xilinx, Inc.                                     *
*     All rights reserved.                                                     *
*******************************************************************************/
// The synthesis directives "translate_off/translate_on" specified below are
// supported by Xilinx, Mentor Graphics and Synplicity synthesis
// tools. Ensure they are correct for your synthesis tool(s).

// You must compile the wrapper file aaa.v when simulating
// the core, aaa. When compiling the wrapper file, be sure to
// reference the XilinxCoreLib Verilog simulation library. For detailed
// instructions, please refer to the "CORE Generator Help".

`timescale 1ns/1ps

module aaa(
	A,
	B,
	C_IN,
	Q,
	CLK);


input [15 : 0] A;
input [15 : 0] B;
input C_IN;
output [15 : 0] Q;
input CLK;

// synthesis translate_off

      C_ADDSUB_V7_0 #(
		.C_ADD_MODE(0),
		.C_AINIT_VAL("0000"),
		.C_A_TYPE(1),
		.C_A_WIDTH(16),
		.C_BYPASS_ENABLE(0),
		.C_BYPASS_LOW(0),
		.C_B_CONSTANT(0),
		.C_B_TYPE(1),
		.C_B_VALUE("0"),
		.C_B_WIDTH(16),
		.C_ENABLE_RLOCS(1),
		.C_HAS_ACLR(0),
		.C_HAS_ADD(0),
		.C_HAS_AINIT(0),
		.C_HAS_ASET(0),
		.C_HAS_A_SIGNED(0),
		.C_HAS_BYPASS(0),
		.C_HAS_BYPASS_WITH_CIN(0),
		.C_HAS_B_IN(0),
		.C_HAS_B_OUT(0),
		.C_HAS_B_SIGNED(0),
		.C_HAS_CE(0),
		.C_HAS_C_IN(1),
		.C_HAS_C_OUT(0),
		.C_HAS_OVFL(0),
		.C_HAS_Q(1),
		.C_HAS_Q_B_OUT(0),
		.C_HAS_Q_C_OUT(0),
		.C_HAS_Q_OVFL(0),
		.C_HAS_S(0),
		.C_HAS_SCLR(0),
		.C_HAS_SINIT(0),
		.C_HAS_SSET(0),
		.C_HIGH_BIT(15),
		.C_LATENCY(1),
		.C_LOW_BIT(0),
		.C_OUT_WIDTH(16),
		.C_PIPE_STAGES(1),
		.C_SINIT_VAL("0"),
		.C_SYNC_ENABLE(0),
		.C_SYNC_PRIORITY(1))
	inst (
		.A(A),
		.B(B),
		.C_IN(C_IN),
		.Q(Q),
		.CLK(CLK),
		.ACLR(),
		.ADD(),
		.AINIT(),
		.ASET(),
		.A_SIGNED(),
		.B_OUT(),
		.B_SIGNED(),
		.C_OUT(),
		.B_IN(),
		.BYPASS(),
		.CE(),
		.OVFL(),
		.Q_C_OUT(),
		.Q_B_OUT(),
		.Q_OVFL(),
		.S(),
		.SCLR(),
		.SINIT(),
		.SSET());


// synthesis translate_on

// XST black box declaration
// box_type "black_box"
// synthesis attribute box_type of aaa is "black_box"

endmodule

⌨️ 快捷键说明

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