vlsibank

Log in or Sign up.
Main EDA Embedded Systems ASIC FPGA VHDL Verilog CMOS Semiconductors DSP Mixed Signal Architecture Miscellaneous

<-- Previous Next -- > TOPIC: VHDL sintax
Posted by: atti1977     8/28/2006 10:42:24 AM     Category: VHDL
Questions posted: 1         Comments Posted: 1
I C language I use the STRUCT; I wuold know which is the equivalent in VHDL.
regards

Posted by: lal87     3/8/2010 4:55:02 AM
Comments Posted:37       

"record" is equivalent to "struct" in C.You can get a good idea about the use of records from this site:
http://vhdlguru.blogspot.com/2010/02/arrays-and-records-in-vhdl.html


Posted by: santa001     5/28/2007 8:08:46 AM
Comments Posted:1       


Hi atti1977...
 
 i hope that u are in need of a data type where u can handle different types of data..
like Structure in C language VHDL have "record"..
 the syntax for record is

type Module is
   record
    size                  :INTEGER range 10 to 100;
    critical_delay        :Time;
    no_input              :INTEGER range 1 to 10;
    no_output             :INTEGER range 2 to 5;
   end record;

Hope this is what you are looking for...
 
Bye, all the best




You have to be logged in to be able to post a comment. To login click here. First time? Sign up. It just takes a few minutes to sign up.

Login to access the site

  Username:
  Password:
   Signup Forgot Password?    

Users with most replies

   User
 No. of Replies
100
86
77
76
70
66
61
57
54