2024年4月5日发(作者:)

今天有用UE查看verilog程序,下载的UE是破解版的,打开后灰蒙蒙的一片,很不

爽的,于是搜索一番,下面是一段用于verilog在UE中高亮显示的程序,可以用的。以备

后用。

1、 代码保存成”.uew”文件放到UE的wordfiles文件夹下。这个wordfiles文件

夹可以在UE的:高级/配置/编辑器显示/语法着色/文档完整目录名称中找到。如果找不到

就是没有按照默认方式安装,那就查找吧。

2、 在UE中按照路径:高级/配置/编辑器显示/语法着色/语言选择里面找到保存的

uew文件点应用,确定就可以了。注意:如果找不到文件可以先把文档目录路径任意改一

下,然后再改回来就可以了。

3、 原文地址

/?uid=20697149&do=blog&cuid=640466

/L14"Verilog 1364-2001" Line Comment = // Block Comment On = /* Block

Comment Off = */ Block Comment On Alt = (* Block Comment Off Alt = *) String

Chars = " File Extensions = V VL VMD

/Delimiters = ~!@%^&*()-+=|{}[]:;"<> ,

/Function String = "%[ ^t]++^(config[ ^t^p]+[a-zA-Z0-9_]+^)"

/Function String 1 =

"%[ ^t]++^(module[ ^t^p]+[a-zA-Z0-9_]+^)[ ^t^p]++[(;#]"

/Function String 2 = "%[ ^t]++^(task[ ^t^p]+[~(;]+^)[ ^t^p]++[(;#]"

/Function String 3 = "%[ ^t]++^(function[ ^t^p]+[~(;]+^)[ ^t^p]++[(;#]"

/Function String 4 = "%[ ^t]++^(primitive[ ^t^p]+[~(;]+^)[ ^t^p]++[(;#]"

/Function String 5 = "begin[ ^t^p]++^(:[ ^t^p]++[a-zA-Z0-9_]+^)"

/Indent Strings = "begin" "case" "fork" "specify" "table" "config"

/Unindent Strings = "end" "endcase" "join" "endspecify" "endtable"

"endconfig"

/Open Fold Strings = "module" "task" "function" "generate" "primitive" "begin"

"case" "fork" "specify" "table" "config" "`ifdef"

/Close Fold Strings = "endmodule" "endtask" "endfunction" "endgenerate"

"endprimitive" "end" "endcase" "join" "endspecify" "endtable" "endconfig" "`endif"

/C1"Keywords"

always and assign automatic

begin buf bufif0 bufif1

case casex casez cell cmos config