IS reading from buffer quicker than reading from a file in python -
i have fpga board , write vhdl code can images (in binary) serial port , save them in sdram on board. fpga display images on monitor via vga cable. my problem filling sdram take long(about 10 minutes 115200 baud rate). on computer wrote python code send image(in binary) fpga via serial port. code read binary file saved in hard disk , send them fpga. question if use buffer save images insted of binary file, better result? if so, can me how that, please? if not, can suggest me solution, please? in advans,
unless compressing before download, , decompressing image after download, problem 115,200 baud transfer rate, not speed of reading file.
at standard n/8/1 line encoding, each byte requires 10 bits transfer, transferring 1150 bytes per second.
in 10 minutes, transfer 1150 * 60 * 10 = 6,912,000 bytes. @ 3 bytes per pixel (for r, g, , b), 2,304,600 pixels, happens number of pixels in 1920 1200 image.
the answer (a) increase baud rate; and/or (b) compress image (using simple decompress on fpga rle, if amenable sort of compression).
Comments
Post a Comment