Dvteclipse code preprocessing simple operation method recommended

The dvteclipse tool provides the ability to preprocess code.

On the official website, the code preprocessing is also introduced:

Https://Preprocessed_Files_Support.html

Here, the preprocessing of the code using the ep3 command is taken as an example for explanation.

The engineering structure is as follows:

Test.svp: source files that need to be preprocessed with the ep3 command

Test.sv: file after conversion using ep3 command

Makefile: Use the ep3 command to preprocess the test.svp file

Dvt code preprocessing, the key is the file of default.build

File: default.build

+ dvt_pverilog_ext_map + .svp = .sv

+ dvt_pverilog_ext_path_map + ./ = ./

+ dvt_pverilog_run_on_save + "ep3"

+ dvt_init + dvt

Test.sv

Dvt_pverilog_ext_map: indicates file suffix before preprocessing and file suffix after preprocessing

Dvt_pverilog_ext_path_map: Indicates the location of the preprocessed file and the location of the file after preprocessing. The tool will automatically match the files with the same name but different file suffixes in the two directories.

Dvt_pverilog_run_on_save: Indicates the run to be executed when the preprocessed file is saved

After configuring the default.build file, rebuild the project. To open the preprocessed file, you need the right mouse button and select Open With->PVerilog Language Editor.

If you do not have this option, select Other and select PVerilog Language Editor in the interface.

At this point, the code area of ​​test.svp becomes the following interface. In the lower left corner, there are [p], [g], Compare. Represents source files, generated files, and file comparisons.

Generate file interface:

Comparison interface:

At this point, modify the source file, in the lower left corner, select [p]test.svp to switch to the source file. After saving, it will automatically run the set run-ep3 and run in the default.build to preprocess the source file and generate a new file.

The run of ep3 is actually executing the make command.

The above is the dvt file preprocessing introduction, in fact, is to configure the run parameter, and then for the preprocessed file, automatically run the run, get the generated file, and then the tool will source the source file and the generated file, corresponding.

The above run parameters are written relatively simple. Both the source file and the generated file are in the same directory, and the file is fixed. If the file is not fixed and the source file and the generated file are not in the same directory, you need to write more complicated run parameters.

Such as the following run parameters. The files selected in dvt can be automatically preprocessed and generated to the specified location. Can identify three files to be preprocessed: .svp, vfp, vp.

#!/bin/tcsh

Set src_root = `dirname ${selected_resource_loc}`

Set gen_root = `echo $src_root | sed "s#$PROJ_SRC_ROOT#$PROJ_GEN_ROOT"

Set svp_file = ${selected_resource_name}

Set file_exten = ` echo $svp_file | awk - F "."'{print $NF}' `

If ( $file_exten == "svp" ) then

Set sv_file = ` basename $svp_file . svp `.sv

Else if ( $file_exten == "vfp" ) then

Set sv_file = ` basename $svp_file . vfp `.vf

Else

Set sv_file = ` basename $svp_file . vp `.v

Endif

Ep3 $src_root/$svp_file -noprotect > $gen_root/$sv_file

Emacs --no-site-file --batch -l verilog-mode.el $gen_root/$sv_file -f remove-pound -f verilog-auto -f save-buffer

${selected_resource_loc}: built-in variable for dvt, absolute path to selected file

${selected_resource_name}: built-in variable of dvt, file name of selected file

First, get the source file directory and the generated file directory, extract the file suffix, determine the source file type, and then call the ep3 command to preprocess the source file using the verilog-mode plugin of emacd.

In this way, whenever the source file is saved, the run is automatically triggered, and the source file is preprocessed to obtain the destination file.

Anti-Blue Light Film

Blue light filter-using blue light filter technology can eliminate blue light on the phone screen, thereby reducing eye fatigue and fatigue. And keep your eyes healthy and avoid staring at the screen.

Ultra-transparent and protective Ultra-high-quality Ultra HD provides you with clear viewing effects. Let you fully enjoy the super retina display of the screen.

Evacuation Waterproof and Waterproof-The hydrophobic and loose oil transparent layer is used as the final coating to protect screen fingerprints, liquid residues and other stains, keeping your phone in its original condition all day long.

The 0.14mm high-sensitivity touch Ultra-Thin Protective Film can provide real touch and high sensitivity, ensuring that the original high-response touch is not disturbed.

If you want to know more about Anti-Blue Light Screen Protector products, please click the product details to view the parameters, models, pictures, prices and other information about Anti-Blue Light Screen Protector.

Whether you are a group or an individual, we will try our best to provide you with accurate and comprehensive information about the Anti-Blue Light Screen Protector!

Anti-blue Screen Protector, Anti-blue Light Protective Film, Anti-blue Light Screen Protector,Anti Blue Light Screen Protector,Blue Light Blocking Screen Protector

Shenzhen Jianjiantong Technology Co., Ltd. , https://www.jjthydrogelmachine.com

Posted on