|
module fft256(
% T/ G( q+ E j+ q6 Q* Z- W input clk,, M, o$ W; z f2 s5 H; n0 F( Y
input reset_n,
6 W" s1 L0 a4 J/ F* G8 N6 @ input[7:0] sink_real,8 f6 g! g6 ~& e7 U
output wire[1:0] soure_error,
: s3 `; M4 i8 Z2 d( b' w# i3 i9 e output wire source_sop,9 b, U- J9 U! D1 y# a- v
output wire source_eop,
' h" v; H3 J+ L- V' `/ z4 v4 n2 R output wire source_valid,$ r8 m' q! K- g* C4 l1 S3 N$ V
output wire[5:0] source_exp,8 i4 V0 T( |. [1 o
output wire[7:0] source_real,
9 R8 q# p a8 P# o output wire[7:0] source_imag,. C2 O& ]3 p7 k; U
output wire sink_valid,: K" m! j2 {. G3 S$ e
output wire sink_sop,
% l* R5 c8 r9 y- `0 b) l( B output wire sink_eop,
4 _7 d7 V' }% ]8 D output wire sink_ready, L' r- P; T6 O) C U
);
. N- H9 c$ v3 ~. A1 t6 I" Y% r, L$ B) G; W6 f0 R
wire sink_valid_i;; B' D. t: e; x: _) ]
wire sink_eop_i;& `% m% D# o6 Y3 F. W
wire sink_sop_i;
$ _( {; s$ I# U3 xwire sink_ready_i;/ i7 t& L. E# [$ r" ?
0 i. C' C/ S' B7 G( I4 F5 p7 \assign sink_valid = sink_valid_i;) _* g: h% O7 d: X
assign sink_eop = sink_eop_i;
* d: V% ^/ i; P; H3 eassign sink_sop = sink_sop_i;, ?) G$ S6 I8 E
assign sink_ready = sink_ready_i;
, G* S) S9 c3 p6 J# X- w4 D: u3 l: b2 [0 @- N, N% n8 ]1 M
fft_burst u1(
$ ~4 v" t' q" p' a1 e1 W .clk(clk),' E7 c* P% U" e3 r& V. A ^
.reset_n(reset_n),7 Y9 f( u* z" s# G* Z4 x, u. j
.inverse(1'b0),, p3 U8 ^9 d2 G2 e( h* E- W' V
.sink_valid(sink_valid_i),
' }$ p# b+ o" n9 F+ _$ P$ u0 b .sink_sop(sink_sop_i),% ?" Q5 }' F' C* N! @5 S
.sink_eop(sink_eop_i),
7 |2 k1 g& S( l: T .sink_real(sink_real), //实部/ r" Q" ^" ~# @9 A% _ Q
.sink_imag(8'b00000000), //虚部
' z: y$ i }* c7 r; h5 Q D( v .sink_error(2'b00),4 F1 ]( h0 F! l1 ?& i5 i
.source_ready(1'b1),$ m3 [6 n; L7 I7 Z7 o* m
. f) V" y, s' j+ |" L* Z3 G
.sink_ready(sink_ready_i),9 K' b2 A% h' B7 G: ]
.source_error(source_error),1 E" O6 |; N v" y
.source_sop(source_sop),
8 ^) J( x% G) p7 X( l9 B .source_eop(source_eop),
8 Y3 n! r0 Y& ^, g7 Z+ H( {7 v, A .source_valid(source_valid),
/ W% m( P2 p: D/ {+ G! n* e .source_exp(source_exp),
' l9 g$ z _ S. g$ k .source_real(source_real),
& P5 i4 Q" W2 l6 U- q! C3 u .source_imag(source_imag)& k, m1 `/ ~, X6 ^- S$ q
);1 ?( x; F7 `8 e9 N7 F x# e9 l
. K7 x- a* t) b) U+ M9 tctrl_fft u2(
. g9 c7 Y8 z% J" E& t .clk(clk),
4 T; N" |) I$ r$ {4 Q/ e. M5 K .reset_n(reset_n),
6 o$ L' l$ a) P0 i .sink_ready(sink_ready_i),% }! G Q. N6 y" ^' E% A- U# Q: _
.sink_sop(sink_sop_i),7 M* h: [! R/ b
.sink_eop(sink_eop_i),
) O) J4 D D* n! T% l; n! z& n .sink_valid(sink_valid_i)- I3 _& P8 A' N [" |
);
5 x1 o5 ^. l0 i0 V! f. \9 y8 O1 `6 t" |
3 G3 ~6 y) C/ y5 f1 ~! F5 d
}5 O2 V/ S# ~) p9 h% N
, }9 G* J+ [" `6 ]3 Z4 Uendmodule
) J& c( I/ w4 l+ h0 W4 I这个是我的程序!! |
|