help about delete initial value in writing to a text in vhdl

Status
Not open for further replies.

raziyeh94

Junior Member level 1
hello.
please help me.I have a flip flop and I make it as a component. vhdl codes write output of flip flops.but vhdl codes write initial value of output of flip flop in first line of text .I dont want it writes initial value. I want write new value in first line of text.what do i do?
a part of my codes is here.

Code VHDL - [expand]1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
-------------------------------------------------------------------
d(1)<= transport start after f_tchoise(min)+f_tchoise(calibration);
gen:for i in 1 to m generate
d(i+1)<=transport d(i) after f_tchoise(min);
ff1:FF port map(d(i),stop,q1(i));
q(i)<= q1(i);
end generate;
--------------------------------------------------------
write1:process( stop)

variable check: line;
file outfile: TEXT open write_mode is "data\output4.txt";

begin
if (stop 'event and stop='1')   then

write ( check,q);
writeline (outfile, check);
end if;
end process;

Last edited by a moderator:

TrickyDicky

I dont really understand your problem. The code is also not complete.

What is the problem?
You will output Q every time you get a rising edge on the stop signal.

raziyeh94

Junior Member level 1
output of flip flop (q) is written in a text file with rising edge of stop signal .but in text file the first line is initial value of q,for example(q=0).I dont want it write initial value of q.I want the new values of q become in first line of text.