Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Status
Not open for further replies.

raziyeh94

Junior Member level 1
Joined
Mar 26, 2015
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
122
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:

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.
 

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.
 

Well then prevent the first write from happening using some enable signal or something (if enable = '1' then write = '1'..Set enable to '1' after q becomes '1').
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top