Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Mahmood Elnasser
05/18/12 00:09
Read: 2724 times
Sacramento
USA


 
#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


 



List of 7 messages in thread
TopicAuthorDate
verilog to vhdl      Mahmood Elnasser      05/18/12 00:09      
   Problem solved      Mahmood Elnasser      05/18/12 05:55      
      It didnt work because      Jez Smith      05/19/12 02:29      
         Check out this site      Jez Smith      05/19/12 02:39      
            Verilog      Mahmood Elnasser      05/19/12 03:47      
               Why not?      Jez Smith      05/19/12 04:36      
                  employers!!!      Mahmood Elnasser      05/19/12 05:18      

Back to Subject List