Altera_Forum
Honored Contributor
12 years agoError: Top-level design entity "bai3" is undefined
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 endmodule