|
module fft256(
& a- _- ]4 ~* u3 Q' z$ [ l' B9 c9 ~ input clk,
: ?0 |0 b/ h+ [' v8 q input reset_n,( J+ @5 e3 J6 E1 v4 i- ^/ T9 A; x: c' s
input[7:0] sink_real,) b. D% y M( u$ j- f) ]6 [* K
output wire[1:0] soure_error,1 [* o, d9 E4 u3 v
output wire source_sop,' k. |" f% Z4 l6 z
output wire source_eop,! E; ~8 j6 ?( [/ X
output wire source_valid,
! i$ d! ?3 W9 [& P3 }2 S4 h6 A/ L output wire[5:0] source_exp,7 M* w; M, p* U# w+ k1 j4 J
output wire[7:0] source_real,
9 x. B: u3 c$ \- o, V0 q output wire[7:0] source_imag,
' X |6 T' Z; @; o" K output wire sink_valid,$ f: V9 p$ c2 g2 m: {, t- `
output wire sink_sop,
% l, M2 V5 f' ?( B1 O' M, A: y' G output wire sink_eop,- W- S% ?' Q- y4 S
output wire sink_ready
) G, X$ y1 b: `4 l; d( R );& A: F7 C0 S% ^6 e' O. Z
5 f( ]6 z" S( c7 Fwire sink_valid_i;' X* Q( ~, ? T* V" i
wire sink_eop_i;3 } p" F# ^+ ^5 y3 }; H
wire sink_sop_i;5 ^1 H8 K- p1 O
wire sink_ready_i;* a5 \/ x; u6 p8 O
2 |) [: O$ P+ v, W& Zassign sink_valid = sink_valid_i;* f2 R4 z* i2 F. A# S
assign sink_eop = sink_eop_i;
% u7 i! b& F3 w' U+ r5 Massign sink_sop = sink_sop_i; i" z' x9 }& @6 t5 g7 l5 J4 F1 B
assign sink_ready = sink_ready_i;& |7 B. ]6 O, J/ T3 }! F0 X% ?
/ Q# Z$ ~% W3 c% X( Y% |
fft_burst u1(" G6 P6 @# A. w) Z/ d; g% \& p# T
.clk(clk),, Y8 D( C$ o( w8 t& @- f
.reset_n(reset_n), p9 L* Q& R1 X# e7 V
.inverse(1'b0),! M( H0 c u! \& s G) d6 N
.sink_valid(sink_valid_i),
: r! o2 Y0 \- F .sink_sop(sink_sop_i),2 k% P2 O7 u. H4 H3 u
.sink_eop(sink_eop_i),
/ |5 o6 S t) e) d$ }' U! ]% C .sink_real(sink_real), //实部
5 J. X# B+ G9 B, ?2 x' A J" m .sink_imag(8'b00000000), //虚部! L7 [: s; I @' ~6 k4 h/ u# x
.sink_error(2'b00)," s- s2 j: o5 n2 r% n) i1 s% P8 m
.source_ready(1'b1),
' [4 G$ C6 @- p+ z ^# a/ s1 {4 u0 d 3 H9 E O% B2 ]& m# V
.sink_ready(sink_ready_i),
9 k( n4 I1 m9 b) `5 K .source_error(source_error),9 S# k0 _& S o$ r4 W5 V2 K
.source_sop(source_sop),+ {' u% S p) ?$ q5 `8 M2 H( }
.source_eop(source_eop),
. ~* i2 I6 u$ ~3 X4 M% C .source_valid(source_valid),
. r, R5 R: E2 e; k5 P! L .source_exp(source_exp),
/ M- F6 ?, B" C' K$ k' l* v! s6 X .source_real(source_real),' \9 i V7 Y: T* x3 r8 J8 e
.source_imag(source_imag)
8 v4 k2 m* s" O- d );; A c# c( f$ _7 J
3 ?! b& R$ B4 V5 d( A- Q
ctrl_fft u2(
( z; Q6 o8 [8 C7 u) d .clk(clk),
" J3 w; ]$ X: v1 x+ A5 s2 p& e .reset_n(reset_n),
) @# G1 O3 X* I6 n" Z. R; U .sink_ready(sink_ready_i),
) a/ C! J2 X' D .sink_sop(sink_sop_i),% G- t6 W. V) |, P( k
.sink_eop(sink_eop_i),6 c: t0 {& G; ?
.sink_valid(sink_valid_i)
' i. y5 u1 a* B2 j( w ); 3 B% |! P9 T+ V
; i9 E$ D# K& [0 E
% ?0 U0 M4 k/ v2 [. A0 h . q. N6 D0 N; w2 e& w* V
endmodule
6 u5 t, a! ?# y& m3 G这个是我的程序!! |
|