You are on page 1of 5

1.

Sơ đồ khối tổng thể spartial filter

axis_
axi_clk o_data_ready
convolved_
prog_full
pixel_data
axi_reset_n [71:0] data[7:0]
Output o_data_valid
Image convolved
i_data[7:0] pixel_data Conv Buffer o_data[7:0]
control _vld _data_vld
i_data_valid (Fifo)
i_data_ready
o_intr
2. Flowchart image control
Axi_rst
0
*pixel counter (0-511) *currentWrLineBuffer(0-3) : 0 RD_BUFFER0
IDLE_state + 1 (have valid from input) + 1 (pixel counter = 511) (8x512)
1
RD_BUFFER1
Totalpixel *Totalpixel counter(4095- (8x512)
counter >=512*3 0) :
(1536) 2
+ 1 (have valid)
1 - 1 (read_line_buffer = 1) RD_BUFFER2
RD_BUFFER (8x512)
state *rd_line_buffer 3
1 : when totalpixel counter RD_BUFFER3
>= 1536 (3 rows) (8x512)
0 : rdcounter == 511
Rdcounter ==511
0
*Rdcounter(0-511) :
1 *currentRdLineBuffer (0-3):
+ 1 ( clock by clock when
+ 1 (Rdcounter= 511)
rd_line_buffer = 1)
3. Padding insert lineBuffer.v

tb.v
3. Write line bufer

line511 line511 wrPntr = 511


line511
… … … …

line3 i_data_valid=
1
line3 i_data_valid=
1 line3

line2 line2 line2


wrPntr = 1
line1 line1 line1
wrPntr = 0
line0 line0 line0
3. Read line bufer

line511 line511 rdPntr = 511


line511
… … … …
i_rd_data i_rd_data
line3 line3 line3

line2 line2 line2


rdPntr = 1
line1 line1 line0
rdPntr = 0
line0 line0 line1

You might also like