Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver3
65いいね 19258回再生

VHDL BASIC Tutorial - Read a data from File (ROM)

Code example: Reading a data from a file
www.edaplayground.com/x/3vh

In this video we are going to see about reading a data from file. File_open function is used to open a file. Syntax for using file open

function is file_open open paranthesis text semicolon filename semicolon mode close paranthesis. Here filename contains a path from which the file has to be read. Read_mode represent open the file in read mode. While loop is used for storing each and every data into

memory. Here endfile is used to check the data available in the file. read line function is used for select the line from the file. Syntax for

using read line function is readline open paranthesis text semicolon line close paranthesis. Here next when is used for checking the first

line of the File. read function is used for read the data from the file. syntax for read function is read open paranthesis line semicolon data

close paranthesis. Here T_mem is memory of my program. file close function used to close the file. Syntax for file_close function is file_close open paranthesis text close paranthesis.

Thank You for watching this video. For more videos subscribe this channel.

コメント