Forum Discussion
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- It would help us greatly if you showed a small example code with the exact error message you are getting. Also, does the file have a *.sv filename? --- Quote End --- Here is the relevant portion of my code, with an attempt to make the reset_n port optional by means of giving it a default value. Following the code, I am posting the error message. module ncntupdn ( input [N-1:0]data_in, input reset_n = 1, input load, input up, input enp, input clk, output reg [N-1:0]count, output wire rco_n, output wire xrco_n // Acts just like rco_n except it is not disabled by enp going low ); parameter N = 4; Error (10231): Verilog HDL error at ncntupdn.sv(10): value cannot be assigned to input "reset_n" BTW, it didn't make any difference if the file was .v or .sv. Thanks for any advice.