第9讲基本输入输出函数复习课程.pptVIP

  • 0
  • 0
  • 约1.72千字
  • 约 37页
  • 2019-12-01 发布于天津
  • 举报
第九讲 基本的输入和输出 提纲 基本input/output文件 测试程序(Testbenches) ASSERT语句 文件对象 VHDL的对象包括 信号 变量 常量 文件 通过引入文件类型,使得我们可以定义和使用文件对象 文件定义 文件可以通过它所存储的内容来进行区分 type text 是字符串文件; type IntegerFileType 是整数型文件; VHDL 1987中的文件定义 file infile: text is in “inputdata.txt”; file outfile: text is out “outputdata.txt”; VHDL 1993中的文件定义 file infile: text open read_mode is “inputdata.txt”; file outfile: text open write_mode is “outputdata.txt”; 文件定义:二进制I/O文件(VHDL 1993) VHDL支持read(f,value), write(f, value)和 endfile(f)操作; VHDL 93支持File_Open()和File_Close()操作; 直接和间接的文件打开操作; 文件定义:二进制I/O文件(VHDL 1987) 文件定义:二进制I/O文件(VHDL 1987

文档评论(0)

1亿VIP精品文档

相关文档