代码搜索结果
找到约 10,000 项符合
V 的代码
tenths.v
/*******************************************************************
* This file is owned and controlled by Xilinx and must be used *
* solely for design, simulation, implementation and creation o
stopwatch.v
module stopwatch(CLK, RESET, STRTSTOP, TENTHSOUT, ONESOUT, TENSOUT);
input CLK;
input RESET;
input STRTSTOP;
output [9:0] TENTHSOUT;
output [6:0] ONESOUT;
output [6:0] TENSOUT;
wire strtstopinv;
wir
statmach.v
module statmach(CLK,RESET,STRTSTOP,CLKEN,RST);
input CLK;
input RESET;
input STRTSTOP;
output CLKEN;
output RST;
reg CLKEN;
reg RST;
parameter [5:0] //synopsys enum STATE_TYPE
clear=6'
decode.v
module decode (ONE_HOT, BINARY);
input [3:0] BINARY;
output [9:0] ONE_HOT;
reg [9:0] ONE_HOT;
always@(BINARY)
case (BINARY)
4'b0001 : ONE_HOT = 10'b0000000001; // 1
4'b0010 : ONE_HOT =
lin.v
module lin(clock,pwm);
input clock;
output pwm; //接到LED上
reg pwm;
reg[7:0] base; //对比的基数
reg[7:0] count; //对时钟记数,将时间长河分为若干个8位时间段
reg[23:0] count1; //主要得到肉眼
key.v
//Key.<mark>v</mark> <mark>v</mark>0.92 2006-04-05
//8按键扫描输入,与FPGA母板配套
//每个键可以独立设置为四种按键模式ModeIn(32'hxxxxxxxx)之一
//一种是琴键模式(4'h1)[//需用模式//],一种是乒乓键模式(4'h2)
//一种是单脉冲模式(4'h4),一种是连续脉冲键模式(4'h8)
//其它按键模式均为禁用,输出0
//有效按键:每按下并弹 ...
romlookup.v
// megafunction wizard: %LPM_ROM%
// GENERATION: STANDARD
// VERSION: WM1.0
// MODULE: altsyncram
// ============================================================
// File Name: romlookup.v
//
triawave.v
//triawave.v 产生三角波模块 2006-5-1 version:1.0 作者:田世坤
module triawave(clk,enable,address,qtriangle);
input clk, enable;
input [9:0] address;
output [7:0] qtriangle;
reg [7:0] qtriangle;
reg [9
squwave.v
//squwave.v 产生方波模块 2006-5-1 version:1.0 作者:田世坤
module squwave(clk,enable,address,qsquare);
input clk,enable;
input [9:0] address;
output [7:0] qsquare;
reg [7:0] qsquare;
always @
control.v
//name:control.v 主控模块 2006-5-1 version:1.0 作者:田世坤
//波形输出主控模块:
//输入:clk:系统时钟(10MHz);
// keysignal:按键信号;
//输出:DLedout:发光二极管,八位宽;
// ensqu:方波使能信号
// entri:三角波使能信号
// ensin