06-18-2007 11:00 AM
06-18-2007 11:11 AM - edited 06-18-2007 11:11 AM
Message Edited by Bassett Hound on 06-18-2007 11:11 AM
06-18-2007 11:54 AM
06-19-2007 11:48 AM
06-19-2007 03:36 PM
Hi Brian,
thanks for the pointers. I'm still a bit confused. The Application Note (Importing HDL Code into FPGA VIs Using the HDL Interface Node) seems to indicate that you can reference external VHDL code: "...However, you also might want to include external HDL code...."
I got the impression that one could reference either a netlist or a VHDL file in the "external files tab". Including VHDL source in my case would be a lot easier because I wouldn't have to run it through the Xilinx software prior to including it in my LabVIEW design directory.
If importing the VHDL source is not possible, I'll just cut and paste it into the HDL Node implementation window.
Jayde.
06-20-2007 02:25 PM
Jayde,
Sorry if my last post was not clear. You will need to copy and paste the VHDL source that you want to be compiled for the FPGA into the HDL node implementation window.
06-20-2007 02:36 PM
06-22-2007 10:34 AM
Thanks for your help and suggestions.
I did get the HDL node working. The easiest way wound up being to attach my original VHDL code via the external file link and then instantiate it as a component.
There are a few quirks:
std_logic as defined in the port statement, winds up as std_logic_vector(0 downto 0) when transferred to the code segement. There's no way to edit anything so I had to work around this by rewriting some of the code.
std_logic_vectors are "bit mirrored" as they enter the HDL node. I worked around this by adding the LabVIEW "reverse array" block before sending signals into the HDL node.
It seems as if the HDL node is overly difficult to work with, almost as if the user is being deliberately discouraged from working with VHDL. Hopefully this will be corrected in future releases. Sometimes it just make sense to port and share already proven modules (one of the reasons that VHDL is so popular).
Jayde
02-26-2009 06:29 PM
Hi i am still confused in all this, i'm new in this FPGA module, i have a lot of VHDL code for that reason i want use the HDL node interface, but i don´t understand how use external VHD files, for example i tried to use a code for ps2 of keyboard this code shows the binary code ASCII from every key when you press the code is the next:
library IEEE;
use IEEE.STD_LOGIC_1164.all;
entity RegisterS_P is
generic( n: integer := 33);
port(
RST:in std_logic;
CLK_T:in std_logic;
R:in std_logic;
Q:out std_logic_vector(8 downto 1)
);
end RegisterS_P;
architecture simple of RegisterS_P is
signal Qn,Qp:std_logic_vector(n-1 downto 0);
begin
combinational: process(Qp,R)
begin
Qn(n-1)<=R;
for i in n-2 downto 0 loop
Qn(i)<=Qp(i+1);
end loop;
Q<=Qp(8 downto 1);
end process combinational;
sequenctial: process(RST,CLK_T)
begin
if(RST='1')then
Qp<=(others=>'0');
elsif(CLK_T'event and CLK_T='0')then
Qp<=Qn;
end if;
end process sequential;
end simple;
someone can help me in how the use the HDL node to implent that code, also i read all example and information for this node, but i still so confused, well thanks
02-27-2009 11:37 AM
Have you looked at the above links? Those should at least get you started on importing your HDL code into Labview.
Which specific part are you confused about?