|
module fft256(3 F7 Q6 A4 B+ s
input clk,
) w. N1 \/ N* F/ Y input reset_n,, e1 f: ]" }4 h/ O- w! x5 r# H# T
input[7:0] sink_real,9 y# Y* c6 t" Z. w' T
output wire[1:0] soure_error,3 q! x+ _! `# L$ P
output wire source_sop,4 _# j7 i1 Q; A6 L F
output wire source_eop,1 D: l4 t. `- d& r7 F' y7 ~) i' R
output wire source_valid,
) W' |4 I$ D# Z* R8 V7 f output wire[5:0] source_exp,( Q) T- m$ m% j$ n/ T" o
output wire[7:0] source_real,4 g8 U2 Y; _' \ s5 I% [
output wire[7:0] source_imag,: i4 s' G5 r! b" P
output wire sink_valid,
5 q, k, D8 G: ^! w& c8 w' j output wire sink_sop,5 l9 o' O! H+ C2 ^4 h9 J6 c
output wire sink_eop,5 ~/ o2 L* c2 j$ r
output wire sink_ready
; j8 w! D+ f' _, g* ~4 l );) K" ]6 ], z7 t; _* w" v: m% v3 S/ n
6 T7 T5 G- \) C. c' R+ ~, a+ S0 ~2 \wire sink_valid_i;3 Z: v/ z+ o G4 t4 E
wire sink_eop_i;; p G$ x( X- c% k2 f" r4 [
wire sink_sop_i;7 W% O+ ?( E0 @; y& l+ @
wire sink_ready_i;
! s* W' ]) G, E2 T# U6 E X) A# L6 F1 k# T. t) Z
assign sink_valid = sink_valid_i;
2 o! M1 r* G8 l! A k0 }: x- g ^assign sink_eop = sink_eop_i;
- D# P/ j5 [7 K. E# e: T8 |assign sink_sop = sink_sop_i;
* C& P$ K, m3 B- f3 passign sink_ready = sink_ready_i;
* G9 |; E8 D# u+ Z4 C. _1 P7 e6 x6 `0 l l0 }! U
fft_burst u1(1 F( c7 F6 X, X
.clk(clk),
; s- h- y. t C$ `. ]2 V .reset_n(reset_n),
& ?$ [5 ?; d* l0 B .inverse(1'b0),! A( S2 G; g5 u2 c* B+ M; H7 v- C
.sink_valid(sink_valid_i),
( j# ]0 l" h# D5 h6 E .sink_sop(sink_sop_i),9 Z. H) B7 l* v* x$ `; _) E
.sink_eop(sink_eop_i),
$ F1 x" _/ u6 j .sink_real(sink_real), //实部
3 E( n, b) X$ Y# @ .sink_imag(8'b00000000), //虚部
7 Z) E, w9 P% ?: O5 i+ m! c .sink_error(2'b00),1 x) R0 [9 C, I' ]
.source_ready(1'b1),. O8 Y# N* \. u, e
% H; l! K1 A' y( D9 r! y7 ~/ J
.sink_ready(sink_ready_i),# R7 F+ R1 B0 g7 C- Q
.source_error(source_error),+ p ?8 f }% W4 s
.source_sop(source_sop)," h3 X0 T( U: M5 b
.source_eop(source_eop),; o. i: n. `" z8 [( U1 ~
.source_valid(source_valid),
8 ], t+ _4 A5 r" e4 h; n$ y .source_exp(source_exp),
- ^1 y) l; m; _8 z) j .source_real(source_real),0 S; t9 z0 C/ f3 T& k% V3 b, w
.source_imag(source_imag)
2 M% D! K4 V( J4 } );
' N* K! C- ?; h4 p$ H
2 r5 Z) `9 ?" M$ s8 L, D8 ?& Z7 B! [ctrl_fft u2(1 w% S2 x. Z# O) j3 J* j4 Y1 t" a
.clk(clk),
0 g+ h4 L4 P9 O5 K6 h .reset_n(reset_n),1 r4 p7 i2 @6 B
.sink_ready(sink_ready_i),; S0 d( w2 ?' ?7 [( v+ _
.sink_sop(sink_sop_i),
4 f- r4 Z9 q* d8 v( C- s .sink_eop(sink_eop_i),
3 @% k1 L7 ?. D+ f L .sink_valid(sink_valid_i)
/ _. S" H( z) N3 D9 z ); * I2 c& S5 x; [& M
; p; `. ]2 i- ^ y+ z$ Q / J/ @ u7 a2 b) X7 y" y& p
; s- d% n" x9 E) j) Qendmodule1 s6 i3 m8 ~1 z- k1 q
这个是我的程序!! |
|