thank u so much fr replyin...
i basically am a starter and i have learned the basics quite well...now what i want to know is:
1)open a text file with a message in vhdl
2)store the message onto registers
here is my code
--to open file
type STD_LOGIC_FILE is file of STD_LOGIC_VECTOR;
type BIT_FILE is file of BIT_VECTOR;
file SHA1:TEXT open READ_MODE is "/user/home/jb/add.sha'';
(is this code correct?if not can u suggest me the proper code or help me with coding...if this is correct is this enough for me to read the contents in it?)
now next i want to store the contents of this text file onto a register...i think i know how to declare a register..my code is
--register declaration
entity reg_decl is
eng reg_decl;
architecture reg_decl is
generic(START:CHARACTER:=0;STOP:INTEGER:=512);
port(D:in STD_LOGIC_VECTOR(START to STOP),Q
ut STD_LOGIC_VECTOR(START to STOP),CLOCK:in STD_LOGIC);
end reg_decl;
is this correct....or if i have totally got the basics wrong..pls help me...tell me what the above codes do and pls help me as to hw to open a text file..read contents and store the same to a 512 bit register..thank u so much again for giving me ur time..