??? 05/18/12 06:09 Read: times |
#187408 - verilog to vhdl |
I've been trying to turn leds on and off with my XC9572XL demo board for few days with no success.
However when I made a new project with the supplied verilog demo file it works. (it must be me!) Since I can only speak vhdl, i downloaded verilog to vhdl converter program http://www002.upp.so-net.ne.jp/morioka/v2v.html but it gives me syntax error on line 1 and line 28. Please help? `timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 01:43:46 07/19/2011 // Design Name: // Module Name: Main // Project Name: // Target Devices: // Tool versions: // Description: // // Dependencies: // // Revision: // Revision 0.01 - File Created // Additional Comments: // ////////////////////////////////////////////////////////////////////////////////// module Main( iCLK, oLED ); input iCLK; output [3:0]oLED; reg [24:0]sr_counter = 25'b0; reg [3:0]sr_led = 4'b1110; assign oLED = sr_led; always@(posedge iCLK) if(sr_counter >= 25'd25000000) sr_counter <= 1'b0; else sr_counter <= sr_counter + 1'b1; always@(posedge iCLK) if(sr_counter >= 25'd25000000) sr_led <= {sr_led[2:0],sr_led[3]}; else sr_led <= sr_led; endmodule |
Topic | Author | Date |
verilog to vhdl | 01/01/70 00:00 | |
Problem solved | 01/01/70 00:00 | |
It didnt work because | 01/01/70 00:00 | |
Check out this site | 01/01/70 00:00 | |
Verilog | 01/01/70 00:00 | |
Why not? | 01/01/70 00:00 | |
employers!!! | 01/01/70 00:00 |