[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[f-cpu] oops !



it seems that there was a transmission error with the included file
(cat.vhdl). Here it is, in attached form.
WHYGEE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LIBRARY ieee;
    USE ieee.std_logic_1164.ALL;
    USE ieee.numeric_std.all;
LIBRARY std;
    USE std.textio.ALL;

entity test is
end test;

architecture tst of test is

  type byte_stream is file of character ;
  file in_file  : byte_stream open read_mode is "in";
  file out_file : byte_stream open write_mode is "out";

begin  -- test

  process
    variable c : character;
    variable i : integer := 0;
    variable l : line;
  begin
    while not endfile(in_file) loop
      read(in_file,c);
      write(out_file,c);
      i := i+1;
    end loop;
    WRITE(l,i);
    WRITE(l,string'(" bytes copied "));
    writeline(output, l);
    wait;
  end process;

end tst;