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

📄 reg8.v

📁 寄存器的VHDL源码.可能有点简单 新手大家间量 希望和大家学习
💻 V
字号:
//--------------------------------------------------------------------------------------------------
//
// Title       : reg8
// Design      : exp1
// Author      : liwei
// Company     : buaa
//
//-------------------------------------------------------------------------------------------------
//
// File        : reg8.v
// Generated   : Tue Apr 25 21:53:37 2006
// From        : interface description file
// By          : Itf2Vhdl ver. 1.20
//
//-------------------------------------------------------------------------------------------------
//
// Description : 
//
//-------------------------------------------------------------------------------------------------
`timescale 1 ns / 1 ps

//{{ Section below this comment is automatically maintained
//   and may be overwritten
//{module {reg8}}
module reg8 ( clr ,clk ,DOUT ,D );

input clr ;
wire clr ;
input clk ;
wire clk ;
input [7:0] D ;
wire [7:0] D ;

output [7:0] DOUT ;
reg [7:0] DOUT ;

//}} End of automatically maintained section

// -- edit by liwei -- //
always @ ( posedge clk or posedge clr)
	begin 
		if ( clr == 1'b1)
			DOUT <= 0;
		else DOUT <= D ; 
		end
		
endmodule

⌨️ 快捷键说明

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