- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can You help me correct this problem in this code below:
module PWM( Ton,T,clk,Output_PWM); input clk; output Output_PWM; input [7:0] Ton; input [7:0] T; reg Output_PWM; integer a,i; initial begin a = 0; i = 0; end always@( posedge clk) begin if(i == 99999) begin i = 0; a= a +1; if(a <= T) begin if(a<= Ton) Output_PWM = 1; else Output_PWM = 0; end else a = 0; end end endmoduleLink Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Probably your project name is "bai3" but your top level module is "PWM". Go to Assigments->Settings and go to Top level entity and select PWM. Click OK and compile again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
add "bai3.v" to project and check if module name is bai3.v
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
add "bai3.v" to project and check if module name is "bai3" and set top module "bai3"

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page