所需E币: 4
时间: 2019-12-25 09:48
大小: 140KB
verilog文件读写教程ReadingandwritingfilesfromVerilogmodelsIntroductionThisdescribeshowyoucanreadandwritefilesinaVerilogmodelusingasetofuserfunctions,basedontheCstdiopackage.WiththesefunctionsyoucanperformfileinputandoutputdirectlyinVerilogmodelswithouthavingtolearnCorthePLI.ThiscodeworkswithVCS,MTI,Verilog-XL,andNC-Verilog(see$freadforonerestriction).NotethatSynopsys'VCS6.1,NC-Verilog3.3,andMTI'sModelSim5.5offernativesupportfortheIEEE-13642001standard.Verilog-XLdoesnotsupportthesetasksexceptthroughthisPLIapplication.•Copyright•Overview•DifferencesbetweenfileioandIEEE-1364Verilog-2001standard•FileInputFunctions•RestrictionsandCaveats•Readingpatternfiles•Compa……