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.

VHDL read/write keywords

Status
Not open for further replies.

shaiko

Advanced Member level 5
Joined
Aug 20, 2011
Messages
2,644
Helped
303
Reputation
608
Reaction score
297
Trophy points
1,363
Activity points
18,302
COMPONENT some_component is
PORT
(
Read : OUT std_logic ;
Write : OUT std_logic ;
);
END COMPONENT;

What is the purpose of "read" and "write" keywords is VHDL ?
How are they used ?
 

So what is their purpose ?
 

in your code, they are just single bit outputs of the component.
 

They're not keywords, they're port names. If you don't know that one I'm afraid you won't get vhdl.
 

hey,

I think you are regerring to READ and WRITE from TEXTIO package. If that is the case then they are used to read/write anything from/into any file (say txt file) in your hard-disk. Refer to std_logic_textio.all. Link is https://www.csee.umbc.edu/portal/help/VHDL/textio.vhdl.

However, in your code they are simple OUT ports.

Abhishek
 
  • Like
Reactions: shaiko

    shaiko

    Points: 2
    Helpful Answer Positive Rating
READ and WRITE are actually implied for all file type, along with the ENDFILE function, in theory allowing you to read any type from any file. The textio package (std_logic_textio only declares them for std_logic/std_logic_vector) declares new versions allowing you to read and write strings to text files, and should work as intended (the implied READ and WRITE may not work the same with all simulators annoyingly).
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top