티스토리 뷰
library
Use std.textio.all;
routines
read( )
readline( )
write( )
writeline( )
examples
write_ex : process(clk)
Use std.textio.all;
routines
read( )
readline( )
write( )
writeline( )
examples
read_ex : process
file my_file : text is in "./reading.txt";
variable text_line : line;
variable tmp : bit_vector(15 downto 0);
begin
while not endfile(my_file) loop
readline(my_file, text_line);
read(text_line, tmp);
wait until clk = '0';
end loop;
end process;
while not endfile(my_file) loop
readline(my_file, text_line);
read(text_line, tmp);
wait until clk = '0';
end loop;
end process;
read_ex2 : process(clk)
file my_life : text is in "./reading.txt";
variable text_line : line;
variable tmp : bit_vector(15 downto 0);
begin
if(clk = '1' and clk'event) then
readline(my_file, text_line);
read(text_line, tmp);
end if;
end process;
variable text_line : line;
variable tmp : bit_vector(15 downto 0);
begin
if(clk = '1' and clk'event) then
readline(my_file, text_line);
read(text_line, tmp);
end if;
end process;
write_ex : process(clk)
file my_file : text is out "./writing,txt";
variable text_line : line;
begin
if(clk = '1' and clk'event) then
write(text_line, integer'(conv_integer(out_data)));
write(my_file, text_line);
end if;
end process;
variable text_line : line;
begin
if(clk = '1' and clk'event) then
write(text_line, integer'(conv_integer(out_data)));
write(my_file, text_line);
end if;
end process;
'DigitalFactory' 카테고리의 다른 글
Published (0) | 2009.05.06 |
---|---|
1st Step (0) | 2009.04.06 |
SCI, SCIE journal 검색 (0) | 2009.04.06 |
SCI impact factor 검색 (0) | 2009.04.05 |
내 생애 첫 MPW (6) | 2009.01.13 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Sony
- 28/2
- PIFF
- 레고
- 리뷰
- 부산국제영화제
- 부산
- 28.2
- 영화
- 해운대
- 커피
- 아이폰
- 롯데자이언츠
- a700
- iphone
- 음식
- 부산대
- 요리
- 사진
- 1680za
- RX1
- 롯데
- 광안대교
- 소니
- a550
- Lego
- 맛집
- 여행
- NEX-5
- 야구
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
글 보관함