summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorambikeshwar2015-06-23 23:17:14 +0530
committerambikeshwar2015-06-23 23:17:14 +0530
commit418190703f723d74ec1a9373a58ebe60ccd12843 (patch)
treec8a52c61b5fdc73423109fd8fa547fd619776bb4
parent566aea9d006fa9b399ed445595d35389290fcc3f (diff)
downloadnghdl-418190703f723d74ec1a9373a58ebe60ccd12843.tar.gz
nghdl-418190703f723d74ec1a9373a58ebe60ccd12843.tar.bz2
nghdl-418190703f723d74ec1a9373a58ebe60ccd12843.zip
Documentation for GHDL added
-rw-r--r--GHDLside.md35
1 files changed, 35 insertions, 0 deletions
diff --git a/GHDLside.md b/GHDLside.md
new file mode 100644
index 0000000..64ad7f0
--- /dev/null
+++ b/GHDLside.md
@@ -0,0 +1,35 @@
+# Code Documentation (GHDL Side)
+
+This documentation will help you to know about the code written for communication between server and Digital logic written in VHDL
+
+## Files generated automatically for GHDL side
+
+* modelname_tb.vhdl
+* Note: where modelname will be the name of your model
+
+## modelname_tb.vhdl
+
+* This is a testbench created to send and receive values from server and gives the input values to the digital design.
+* It uses VHPI library of VHDL, by including this library we can use functions written in C program, in VHDL.
+* In this test bench there are two processes used.
+* First process is used to initialize, listen server and sending the output to server.
+* Second process is used to giving inputs from server to digital design and taking the values to send through the server.
+
+### C functions used in modelname_tb.vhdl
+#### Vhpi_Initialize
+* This function is used to create the port and initialize the server.
+
+#### Vhpi_Listen
+* This function is used to start communication between client and server.
+
+#### Vhpi_Send
+* This function is used to send the values to client.
+
+#### Pack_String_To_Vhpi_String
+* As we are sending values along with there variable name, we are using this function which convert the vhdl string to VHPI string.
+
+#### Vhpi_Get_Port_Value
+* This function takes input values from server, when Vhpi_Listen called, and give it to digital design.
+
+#### Vhpi_Set_Port_Value
+* This function is used to takes output values from digital design and send it through server when Vhpi_Send called.