Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
demo_multiout_function.v
Package: verilogsourcefiles.rar [view]
Upload User: xyledys
Upload Date: 2009-08-08
Package Size: 20k
Code Size: 0k
Category:
VHDL-FPGA-Verilog
Development Platform:
Windows_Unix
- module demo_multiout_function;
- reg[7:0] a,b,c,d;
- initial
- begin
- a=8'h54;
- b=8'h32;
- {c,d}=multiout_fun(a,b);
- $display("the value of c is:%b;d is:%b",c,d);
- end
- function multiout_fun;
- input[7:0] in1;
- input[7:0] in2;
- reg[7:0] out1;
- reg[7:0] out2;
- begin
- out1=in1&in2;
- out2=in1|in2;
- multiout_fun={out1,out2};
- end
- endfunction
- endmodule