Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

verlog code error

Altera_Forum
Honored Contributor II
2,106 Views

Hi,anybody please help me to identify the error in coding. 

 

ThANK YOU
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
1,306 Views

 

--- Quote Start ---  

Error (10137): Verilog HDL Procedural Assignment error at expr.v(15): object "pwm" on left-hand side of assignment must have a variable data type 

--- Quote End ---  

If you don't manage to learn Verilog syntax from the bottom, you should at least read error messages thoroughly. 

 

An output port that is assigned in a procedural statement must be defined as reg, e.g. 

output reg pwm; 

or 

output pwm; reg pwm;
0 Kudos
Altera_Forum
Honored Contributor II
1,306 Views

sorry, 

 

Thankyou....
0 Kudos
Reply