Wednesday, 24 July 2013

Advantages of using VHDL programming

The key advantage of VHDL, when used for systems design, is that it allows the behavior of the required system to be described (modeled) and verified (simulated) before synthesis tools translate the design into real hardware (gates and wires).


Another benefit is that VHDL allows the description of a concurrent system. VHDL is a dataflow language, unlike procedural computing languages such as BASIC, C, and assembly code, which all run sequentially, one instruction at a time.


A VHDL project is multipurpose. Being created once, a calculation block can be used in many other projects. However, many formational and functional block parameters can be tuned (capacity parameters, memory size, element base, block composition and interconnection structure).


A VHDL project is portable. Being created for one element base, a computing device project can be ported on another element base, for example VLSI with various technologies.

Matlab,different ways to initialise an array


matlab programme to convert rgb image to gray scale image


Friday, 12 July 2013

Turboc graphics in windows 7

It's working :
Place the EGAVGA.bgi file in thebin folder of  the installed directory of turboc++ that's it




link to the file


Pointer-Constant and Pointer-Variable

POINTER:
                                  A pointer provides an way of accessing a variable (or much complex data ,such as an array ,block of memory )......


POINTER_CONSTANT:           A pointer constant is an adderess





POINTER_VARIABLE:   A place to store address

Tuesday, 4 June 2013

Installing updates in Devc++ compiler


1.Open the application
2.go to tools-->check for updates or packages-->select depacks.org and check for updates

ex:glut lybrary for developing computer graphics applications using c/c++....

watch through vedio

Saturday, 18 May 2013

Bit feilds in c;how to assign an single bit to an variable in c

C offers the capability to define the width of a variable, but only when the variable
is in a structure called a bit field. For example, you could rewrite the definition of Status
as follows:






struct {
unsigned int bIsValid:1;
unsigned int bIsFullSize:1;
unsigned int bIsColor:1;
unsigned int bIsOpen:1;
unsigned int bIsSquare:1;
unsigned int bIsSoft:1;
unsigned int bIsLong:1;
unsigned int bIsWide:1;
unsigned int bIsBoxed:1;
unsigned int bIsWindowed:1;
} Status;



The :1 that appears after each variable’s name tells the compiler to allocate one
bit to the variable. Thus, the variable can hold only a 0 or a 1. This is exactly what is
needed, however, because the variables are TRUE/FALSE variables. The structure is
only two bytes long.



A bit field can hold more than a single bit. For example, it can hold a definition
of a structure member, such as
unsigned int nThreeBits:3;
In this example, nThreeBits can hold any value from 0 to 7.