|
4#

樓主 |
發表於 2008-12-22 16:11:04
|
只看該作者
原帖由 masonchung 於 2008-12-22 02:16 PM 發表 0 c* Y! p A3 C) b( i8 M9 R3 v
module sh(a,division,out);% M0 A) R# F7 J) N4 N% y0 z, E* Q
" P2 d4 [5 K/ S5 pinput [7:0] a;
$ c% E; M5 L: f2 H. M. minput division;+ U$ ~6 |4 c. u2 U! B% t
output [10:0] out;
1 I& k* A' {% c: T( g2 |; I, `reg [10:0] out;# U/ }0 K9 k" X
wire [4:0] div_8_out;
( W" R1 x9 q3 g8 ]9 Vwire [10:0] mult_8_out ;
8 b1 ^# I! M( L f
( z! i' y- V; Q p% O8 t c* uassign div_8_out = a>>4'b0011;/ ?7 G. H( p2 A3 ?5 H+ m0 J, l
assign mult_8_out ...
/ U# |. V7 Q! O9 d, j
2 n1 A' B+ n. e! {" F7 ~7 P4 q( o1 X6 @! c* W ~8 k
請問這是DATAFLOW與behavioral一起寫的嗎?? n% k9 |9 @2 G; D+ C
還是兩種模式開寫的呢?? V( P m1 b. ^- z4 p+ D
可不可以幫我分開; p! ]7 V9 {6 _" L
DATAFLOW寫一個 behavioral寫一個
9 y6 P4 ~2 @; `8 t, I9 _真的很感謝你 |
|