- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can anyone help me translate this from Verilog to VHDL:
wire [4:0] sub_wire0; wire [0:0] sub_wire5 = 1'h0; wire [0:0] sub_wire2 = sub_wire0[0:0]; wire [1:1] sub_wire1 = sub_wire0[1:1]; wire c1 = sub_wire1; wire c0 = sub_wire2; wire sub_wire3 = inclk0; wire [1:0] sub_wire4 = {sub_wire5, sub_wire3};Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This should do it:
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
ENTITY test IS
PORT (
inclk0 : IN std_logic
);
END ENTITY test;
ARCHITECTURE rtl OF test IS
SIGNAL sub_wire0 : std_logic_vector(4 DOWNTO 0);
SIGNAL sub_wire5 : std_logic := '0';
SIGNAL sub_wire2 : std_logic_vector(0 DOWNTO 0);
SIGNAL sub_wire1 : std_logic_vector(1 DOWNTO 1);
SIGNAL c1 : std_logic;
SIGNAL c0 : std_logic;
SIGNAL sub_wire3 : std_logic;
SIGNAL sub_wire4 : std_logic_vector(1 DOWNTO 0);
BEGIN -- ARCHITECTURE rtl
sub_wire2(0) <= sub_wire0(0);
sub_wire1(1) <= sub_wire0(1);
c1 <= sub_wire1(1);
c0 <= sub_wire2(0);
sub_wire3 <= inclk0;
sub_wire4 <= sub_wire5 & sub_wire3;
END ARCHITECTURE rtl;
But to be honest this code doesn't make much sense.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
after a quick glance this looks correct
the code looks like it's machine generated to me, which is why it doesn't make sense- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there any tool to convert from verilog to vhdl.
i have synapticad but i dont know how to convert it. give some tools for HDL conversion.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
vasireddyrajesh3 (http://www.alteraforum.com/forum/member.php?u=56700): Yes, X-HDL is a tool, but it wont work for files over 1024 bytes :mad:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the info.

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