CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - outb
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - outb - List
[
Special Effects
]
lookup_multi
DL : 0
//4×4 查找表乘法器 module mult4x4(out,a,b,clk) output[7:0] out input[3:0] a,b input clk reg[7:0] out reg[1:0] firsta,firstb reg[1:0] seconda,secondb wire[3:0] outa,outb,outc,outd always @(posedge clk) begin firsta = a[3:2] seconda = a[1:0] firstb = b[3:2] secondb = b[1:0] end lookup m1(outa,firsta,firstb,clk), m2(outb,firsta,secondb,clk), m3(outc,seconda,firstb,clk), m4(outd,seconda,secondb,clk) //模块调用
Date
: 2008-10-13
Size
: 816byte
User
:
stevephen
[
Special Effects
]
lookup_multi
DL : 0
//4×4 查找表乘法器 module mult4x4(out,a,b,clk) output[7:0] out input[3:0] a,b input clk reg[7:0] out reg[1:0] firsta,firstb reg[1:0] seconda,secondb wire[3:0] outa,outb,outc,outd always @(posedge clk) begin firsta = a[3:2] seconda = a[1:0] firstb = b[3:2] secondb = b[1:0] end lookup m1(outa,firsta,firstb,clk), m2(outb,firsta,secondb,clk), m3(outc,seconda,firstb,clk), m4(outd,seconda,secondb,clk) //模块调用-//4 × 4 multiplier lookup table module mult4x4 (out, a, b, clk) output [7:0] out input [3:0] a, b input clk reg [7:0] out reg [1:0 ] firsta, firstb reg [1:0] seconda, secondb wire [3:0] outa, outb, outc, outd always @ (posedge clk) beginfirsta = a [3:2] seconda = a [1:0] firstb = b [3:2] secondb = b [1:0] endlookup m1 (outa, firsta, firstb, clk), m2 (outb, firsta, secondb, clk), m3 (outc, seconda, firstb, clk), m4 ( outd, seconda, secondb, clk)// module call
Date
: 2026-01-03
Size
: 1kb
User
:
stevephen
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.