Method for acquiring file status by using Verilog hardware description language

A hardware description language and file technology, applied in the direction of program control design, instruments, electrical digital data processing, etc., can solve the problems of inconvenient testing, poor test code portability, inconvenient user design and testing, etc., to achieve enhanced operation functions, Simple code writing and good code portability

Inactive Publication Date: 2007-03-21
HUAWEI TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although the designers and testers of this scheme do not need to be directly exposed to C language programming, how to use the Verilog file operating system task extended through the stdio function also needs to be re-learned, and how to connect with the simulation tool during simulation is also useful for different simulation tools. Different requirements, on the one hand, this brings inconvenience to the test, on the other hand, it causes poor portability of the test code,

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for acquiring file status by using Verilog hardware description language
  • Method for acquiring file status by using Verilog hardware description language

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] In the solution of the present invention, when creating a file register group for storing file data, all registers in the file register group are specified as a certain original value. Use the system task $readmemb or $readmemh provided in the Verilog language standard to read the file. When the file data is read into the register of the file register group, the content of the file data will overwrite the original value of the register where it is located. In this way, it is possible to determine whether the register is empty by comparing whether the data content in the register is consistent with the original value of the register, and then know the file status information corresponding to the file register group, such as: whether the file is empty, the data in the file number, the end point of the file, and whether the file has been read.

[0026] Below, the preferred embodiment of the present invention is described in detail by taking the read operation process of t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a file status acquisition method using the Verilog hardware description language. It is composed of the following steps. Setup a file register group composed of more than one register, and stores the file data in the file register group when handling the files. Determine whether the data in the register group is the original value of the corresponding data stored register. If it is, the register is empty. Otherwise the register is not empty, and the file status is determined according to the register status of the mentioned file register group. The invention implements the file status determination based on the Verilog language without involving the other languages. By this means, the file dynamically read-write exchanging can be implemented in the disk.

Description

technical field [0001] The invention relates to the technical field of electronic system simulation design, in particular to a method for obtaining file status by using Verilog hardware description language (HDL, Hardware Description Language). Background technique [0002] With the expansion and complexity of electronic systems in electronic design, designers must use hardware description languages ​​to design complex electronic systems through simulation and modeling. At present, the hardware description languages ​​mainly used in electronic design are VHDL and Verilog HDL. Among them, VerilogHDL was launched late. This language is more suitable for digital system modeling at various abstract design levels from algorithm level, register transfer level, logic level, gate level to switch level, and its syntax is flexible, easy to grasp, and functional. Comprehensive, good scalability and other characteristics, and gradually become a hardware description language widely used...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/45
Inventor 潘剑锋柳精伟雷春涂君
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products