Forum Discussion
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- Hello, It's true that Quartus 15.1 supports package and user-defined types. Could you share your entire code? ( File which contains package and another file which contains your port declaration.) Also please post full message for your error. Thanks, Bhaumik --- Quote End --- It's full code, which ended with error: Error (10170): Verilog HDL syntax error at tst_package.sv(8) near text: "SIG1"; expecting ")". Check for and fix any syntax errors that appear immediately before or at the specified keyword. The Altera Knowledge Database contains many articles with specific details on how to resolve this error. Visit the Knowledge Database at https://www.altera.com/support/support-resources/knowledge-base/search.html and search for this specific error message number.
package state_type;
typedef logic SIG1_WIDTH_T;
endpackage
import state_type::*; // import package definitions into $unit
module tst_sv(
inout wire SIG1_WIDTH_T SIG1//not working
//inout wire logic SIG1//working correctly
);
endmodule