reef88
Junior Member level 2

hi,
can someone in this forum convert verilog code to vhdl code..please...
really need others help...
this is the code:
module line_cntr_v(
input CLK_DIV,
input EN,
input RST,
input V_CNT,
output reg H_V_CNT,
output reg V_DONE,
output reg [9:0] V_COUNT
);
reg H_DONE;
always @ (posedge CLK_DIV)
begin
if (RST)
begin
V_COUNT<=0;
V_DONE <=0;
H_V_CNT <=1;
end
if (V_COUNT==520)
begin
V_COUNT<=0;
V_DONE <= 1'b1;
end
else
if (EN)
if (V_CNT)
begin
V_COUNT<= V_COUNT+1;
V_DONE <= 0;
H_V_CNT <= 1;
end
else
begin
V_COUNT <= V_COUNT;
V_DONE <= 0;
end
end
endmodule
can someone in this forum convert verilog code to vhdl code..please...
really need others help...
this is the code:
module line_cntr_v(
input CLK_DIV,
input EN,
input RST,
input V_CNT,
output reg H_V_CNT,
output reg V_DONE,
output reg [9:0] V_COUNT
);
reg H_DONE;
always @ (posedge CLK_DIV)
begin
if (RST)
begin
V_COUNT<=0;
V_DONE <=0;
H_V_CNT <=1;
end
if (V_COUNT==520)
begin
V_COUNT<=0;
V_DONE <= 1'b1;
end
else
if (EN)
if (V_CNT)
begin
V_COUNT<= V_COUNT+1;
V_DONE <= 0;
H_V_CNT <= 1;
end
else
begin
V_COUNT <= V_COUNT;
V_DONE <= 0;
end
end
endmodule