vscode-terosHDL icon indicating copy to clipboard operation
vscode-terosHDL copied to clipboard

"Hover & evaluate“ feature doesn't support ".sv" files.

Open Lvwings opened this issue 2 years ago • 2 comments

Thanks.

Lvwings avatar Jun 12 '23 09:06 Lvwings

Can you provide a code sample?

qarlosalberto avatar Jun 12 '23 09:06 qarlosalberto

Thanks for your reply. "Hover & evaluate“ feature works great when I use .v files. The code sample shows below:

module code_sample ( input logic clk, // Clock input logic clk_en, // Clock Enable input logic rst_n, // Asynchronous reset active low output logic out

); logic r_out = '0; always_ff @(posedge clk or negedge rst_n) begin : proc_ if (~rst_n) begin out <= 0; end else if (clk_en) begin out <= 1; end else begin out <= r_out; end end

endmodule : code_sample

Lvwings avatar Jun 12 '23 10:06 Lvwings