Extension: .v
Line Comment: //
Block Comment: /* */
Begin: BEGIN
End: END
Sample Code:
module test(clk, enable, value)
input clk;
input enable;
output [7:0] value;
reg [7:0] count;
always @(posedge clk)
begin
if(enable == 0)
count <= 0;
else
count <=count + 1;
end
endmodule
Verilog Code Folding Description
The code folding for Verilog has been implemented and the new xFolder.dll can be found here:
http://www.zeusedit.com/z300/xfolder.zip
To install the new folding dll:
This code will fold incorrectly because of the end else begin line. For the folding to work correctly the code needs to be re-formated as follows:
http://www.zeusedit.com/z300/xfolder.zip
To install the new folding dll:
- Make a backup copy of the current xFolder.dll and replace it with xFolder.dll from the link above
- Create a Verilog Document Type.
- Open a Verilog file
- Turn on code folding using the View, Folding, Folding Margin menu.
Code: Select all
if (~reset) begin
q <= 1'b0;
end else begin
q <= data;
end
Code: Select all
if (~reset) begin
q <= 1'b0;
end
else
begin
q <= data;
end