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
pe1.v
Package: inter_prediction(verilog).rar [view]
Upload User: abszbd2002
Upload Date: 2020-10-12
Package Size: 33407k
Code Size: 1k
Category:
Compress-Decompress algrithms
Development Platform:
VHDL
- module pe1(new_ina,new_inb,rb_in,pin,cbin,clk,sela,selb,
- new_outa,new_outb,rb_out,pout,cbout,en_cb,en_new);
- input [7:0] new_ina,new_inb,rb_in,pin,cbin;
- input clk;
- input sela;
- input [1:0] selb;
- input en_cb,en_new;
- output [7:0] new_outa,new_outb,rb_out,pout,cbout;
- //output [7:0] sad;
- reg [7:0] sdba,sdbb,pr,rbr,cbr;
- assign new_outa=sdba;
- assign new_outb=sdbb;
- assign rb_out=rbr;
- assign pout=pr;
- assign cbout=cbr;
- always @ (posedge clk)
- if(en_new)
- begin
- sdba<=new_ina;
- sdbb<=new_inb;
- pr<=pin;
- end
- always @ (posedge clk)
- case(selb)
- 2'b01: rbr<=rb_in;
- 2'b10: rbr<=sdba;
- 2'b11: rbr<=sdbb;
- endcase
- always @ (posedge clk)
- if (en_cb)
- begin
- if(sela)
- cbr<=cbin;
- else cbr<=pr;
- end
- endmodule