ketanlad_18
Newbie level 4
this is my code for fir filter.i want write the output in "to_file" text file.
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
USE IEEE.STD_LOGIC_TEXTIO.ALL;
use std.textio.all;
--use work.utils_pkg.all;
library work;
use work.write_fp.all;
---- Uncomment the following library declaration if instantiating
---- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;
entity output is
end output;
architecture Behavioral of output is
COMPONENT fir
PORT(
x : In Std_logic_vector (3 DownTo 0);
clk : In std_logic;
rst : In std_logic;
y : Out Std_logic_vector (3 DownTo 0)
);
END COMPONENT;
SIGNAL x : Std_logic_vector (3 DownTo 0) := "0000";
SIGNAL clk : std_logic := '0';
SIGNAL rst : std_logic := '0';
SIGNAL y : Std_logic_vector (3 DownTo 0) := "0000";
begin
Inst_fir: fir PORT MAP(
x => x,
clk => clk,
rst => rst,
y => y );
clk <= NOT(clk) AFTER 5 ns;
p1rocess
file to_file:text open write_mode is "C:\Xilinx92i\fir\to_file.txt";
variable comp_line:line;
begin
write (comp_line,string'("output for fir"));
writefp(comp_line,y);
writeline(to_file,comp_line);
end process p1;
end Behavioral;
this is my code for fir filter.i want write the output in "to_file" text file.but following error is occured.
ERROR:Xst:1914 - "C:/Xilinx92i/fir/output.vhd" line 80: File <to_file> does not exist.
pls help me to solve this error.
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
USE IEEE.STD_LOGIC_TEXTIO.ALL;
use std.textio.all;
--use work.utils_pkg.all;
library work;
use work.write_fp.all;
---- Uncomment the following library declaration if instantiating
---- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;
entity output is
end output;
architecture Behavioral of output is
COMPONENT fir
PORT(
x : In Std_logic_vector (3 DownTo 0);
clk : In std_logic;
rst : In std_logic;
y : Out Std_logic_vector (3 DownTo 0)
);
END COMPONENT;
SIGNAL x : Std_logic_vector (3 DownTo 0) := "0000";
SIGNAL clk : std_logic := '0';
SIGNAL rst : std_logic := '0';
SIGNAL y : Std_logic_vector (3 DownTo 0) := "0000";
begin
Inst_fir: fir PORT MAP(
x => x,
clk => clk,
rst => rst,
y => y );
clk <= NOT(clk) AFTER 5 ns;
p1rocess
file to_file:text open write_mode is "C:\Xilinx92i\fir\to_file.txt";
variable comp_line:line;
begin
write (comp_line,string'("output for fir"));
writefp(comp_line,y);
writeline(to_file,comp_line);
end process p1;
end Behavioral;
this is my code for fir filter.i want write the output in "to_file" text file.but following error is occured.
ERROR:Xst:1914 - "C:/Xilinx92i/fir/output.vhd" line 80: File <to_file> does not exist.
pls help me to solve this error.