Aya2002
Advanced Member level 4
Hello Friends
this is my first program with VHDL, but i faced some problems:
the code is:
21 module mysource_xor(
22 input wire in1,
23 input wire in2,
24 output wire out
25 assign out = in1 ^ in2,
26
27 );
28
29
30 endmodule
31
-----------------------------------------------------------------------
Compiling verilog file "mysource_xor.v" in library work
ERROR:HDLCompilers:26 - "mysource_xor.v" line 25 expecting ')', found 'assign'
Module <mysource_xor> compiled
Analysis of file <"mysource_xor.prj"> failed.
-->
Total memory usage is 168464 kilobytes
Number of errors : 1 ( 0 filtered)
Number of warnings : 0 ( 0 filtered)
Number of infos : 0 ( 0 filtered)
Process "Synthesis" failed
so, what is the error that i have done?
thank you very much
this is my first program with VHDL, but i faced some problems:
the code is:
21 module mysource_xor(
22 input wire in1,
23 input wire in2,
24 output wire out
25 assign out = in1 ^ in2,
26
27 );
28
29
30 endmodule
31
-----------------------------------------------------------------------
Compiling verilog file "mysource_xor.v" in library work
ERROR:HDLCompilers:26 - "mysource_xor.v" line 25 expecting ')', found 'assign'
Module <mysource_xor> compiled
Analysis of file <"mysource_xor.prj"> failed.
-->
Total memory usage is 168464 kilobytes
Number of errors : 1 ( 0 filtered)
Number of warnings : 0 ( 0 filtered)
Number of infos : 0 ( 0 filtered)
Process "Synthesis" failed
so, what is the error that i have done?
thank you very much