An Overview

All the necessary study material for b-tech students.

What we have to offer you.

Codes,Syllabus,Study material,Lab manuals,Assignments and many more . . .

Surfing becomes easy.

You can have any material from our website and post your valuable comments for further improvement.

Get the latest techno news

Get yourself updated with this fast changing dynamic world and all the changes in b-tech pattern.

All the best resources for you.

We have done our level best to provide you with the best of the degree and thus this site is devoted to b-tech exclusively.

Showing posts with label General Articles. Show all posts
Showing posts with label General Articles. Show all posts

27 January 2012

Input/Output system designing and the steps to be followed.


Designing an I/O System in Five Easy Pieces
The art of I/O system design is to find a design that meets goals for cost, dependability, and variety of devices while avoiding bottlenecks to I/O performance. Avoiding bottlenecks means that components must be balanced between main memory and the I/O device, because performance—and hence effective cost/performance— can only be as good as the weakest link in the I/O chain. The architect must also plan for expansion so that customers can tailor the I/O to their applications. This expansibility, both in numbers and types of I/O devices, has its costs in longer I/O buses, larger power supplies to support I/O devices, and larger cabinets. Finally, storage must be dependable, adding new constraints on proposed designs.

In designing an I/O system, analyze performance, cost, capacity, and availability using varying I/O connection schemes and different numbers of I/O devices of each type. Here is one series of steps to follow in designing an I/O system. The answers for each step may be dictated by market requirements or simply by cost, performance, and availability goals.

Input/Output system- click to see the video


1. List the different types of I/O devices to be connected to the machine, or list the standard buses that the machine will support.

2. List the physical requirements for each I/O device. Requirements include size, power, connectors, bus slots, expansion cabinets, and so on.

3. List the cost of each I/O device, including the portion of cost of any controller needed for this device.

4. List the reliability of each I/O device.

5. Record the CPU resource demands of each I/O device. This list should include Clock cycles for instructions used to initiate an I/O, to support operation of an I/O device (such as handling interrupts), and complete I/O CPU clock stalls due to waiting for I/O to finish using the memory, bus, or Cache CPU clock cycles to recover from an I/O activity, such as a cache flush.

6. List the memory and I/O bus resource demands of each I/O device. Even when the CPU is not using memory, the bandwidth of main memory and the I/O bus is limited.

7. The final step is assessing the performance and availability of the different ways to organize these I/O devices. Performance can only be properly evaluated with simulation, though it may be estimated using queuing theory. Reliability can be calculated assuming I/O devices fail independently and are that MTTFs are exponentially distributed. Availability can be computed from reliability by estimating MTTF for the devices, taking into account the time from failure to repair.

12 January 2012

Amplitude – Modulation Systems made easy


Well, this topic is of huge concern while transmitting the number of signals via the same communication channel. In earlier good days it was a major problem which made the inventors to think upon the various methods that can be implemented in order to send/ receive many messages simultaneously without the collision of any form in the data and hence avoiding the loss in the data signal. Henceforth, we need to study this very topic of Amplitude modulation system which comes under principles of communication systems in b-tech higher engineering education. The term multiplexing comes into action which exclusively means a method of achieving such a method to receive/send many messages/data across a single communication channel. This multiplexing is achieved in different positions in the frequency spectrum. Thus we need to filter the particular message sent or received in this very process of multiplexing. 

Click here for Video showing multiplexing

Here, we use a carrier wave which is also termed as auxiliary waveform this is because it acts as a transporter for the message signal to carry across the distance. This auxiliary waveform is mostly taken as sinusoidal, i.e. in the form of sine or cosine waves. Now, after modulating the message signal into the carrier wave what we achieve is the actual wave that will transfer from one sender device to the receiver end. Now, the technique/operation used can be in amplitude, frequency or phase. This method is implemented on the required configuration. This modulated signal is time dependent, i.e. it varies according to the change in time. The whole system of modified carrier is termed as modulated carrier. For the understanding and for simple cases modulation is only confined to the message but otherwise it may mean more. So, this is a brief idea about Amplitude-Modulation system.  

10 January 2012

Storing the Address in a Pointer


Every variable has an address. Even without knowing the specific address of a given Variable, you can store that address in a pointer. For example, suppose that the variable howOld is an integer. To declare a pointer called pAge to hold its address, you write the following statement:

int *pAge = NULL;

This declares pAge to be a pointer to int. That is, pAge is declared to hold the address of an int. Pointers can have any name that is legal for other variables. Here we follow the convention of naming all pointers with an initial p and a second letter capitalized, as in pAge.

Note that pAge is a variable like any other variable. When you declare an integer variable, it is set up to hold an integer. When you declare a pointer variable like pAge, it is set up to hold an address. A pointer is just a special type of variable that holds the address of an object in memory; in this case, pAge is holding the address of an integer variable. You declare the type of variable you want the pointer to point to. This tells the compiler how to treat the memory at the location the pointer points to. The pointer itself contains an address.
What actually happens inside

In this example, pAge is initialized to NULL. A pointer whose value is NULL is called a null pointer. All pointers, when they are created, should be initialized to something. If you don’t know what you want to assign to the pointer, assign NULL. A pointer that is not initialized is called a wild pointer. Wild pointers are dangerous. If you initialize the pointer to 0 or NULL, you must specifically assign the address of howOld to pAge. Here’s code that shows how to do that:
The result should be the same as if you initialized it to NULL, but technically 0 is an integer constant, and NULL is an address constant of 0. The next version of C, C++, has a new nullptr constant that represents a null pointer. When your C++ compiler supports this new version, use nullptr instead of 0 or NULL.


int howOld = 50;
int *pAge = 0;
pAge = &howOld;

// make a variable
// make a pointer
// put howOld’s address in pAge

The first line creates a variable—howOld, whose type is unsigned short int—and initializes it with the value 50. The second line declares pAge to be a pointer to type unsigned short int and initializes the address to 0. You know that pAge is a pointer because of the asterisk (*) after the variable type and before the variable name. The third and final line assigns the address of howOld to the pointer pAge. You can tell that the address of howOld is being assigned to the pointer because of the address of operator &. If the address of operator was not used, the value of howOld would be assigned instead of its address. That value might be a valid address somewhere in memory, but that would be entirely a coincidence. Assigning a nonpointer to a pointer variable is a common error. Fortunately, the compiler will detect this and fail with an “invalid conversion” error. At this point, pAge has as its value the address of howOld. howOld, in turn, has the value 50. So, it represents the basic idea about storing the address in a pointer.

Simulating an Alarm System



A simulation is a computer model of a part of a real-world system. There are many reasons to build a simulation, but a good design must start with an understanding of what questions you hope the simulation will answer. As a starting point, examine this problem:

You have been asked to simulate the alarm system for a house. The house is a center-hall colonial with four bedrooms, a finished basement, and an under-the-house garage. The downstairs has the following windows: three in the kitchen, four in the dining room, one in the half-bathroom, two each in the living room and the family room, and two small windows next to the front door. All four bedrooms are upstairs; each bedroom has two windows except for the master bedroom, which has four. There are two baths, each with one window. Finally, there are four half-windows in the base-ment and one window in the garage.

Home Alarm Sensor Simulation


Normal access to the house is through the front door. In addition, the kitchen has a sliding glass door, and the garage has two doors for the cars and one door for easy access to the basement. There is also a cellar door in the backyard. All the windows and doors are alarmed, and there is a panic button on each phone and one next to the bed in the master bedroom. The grounds are alarmed, as well, although these alarms are carefully calibrated so that they are not set off by small animals or birds.

A central alarm system in the basement sounds a warning chirp when the alarm has been tripped. If the alarm is not disabled within a set amount of time, the police are called. If a panic button is pushed, the police are called immediately. The alarm is also wired into the fire and smoke detectors and the sprinkler system. The alarm system itself is fault tolerant, has its own internal backup power supply, and is encased in a fireproof box.

8 January 2012

Instructions: Multimedia Extensions of the Desktop/ Server RISCs

Since every desktop microprocessor by definition has its own graphical displays, as transistor budgets increased it was inevitable that support would be added for graphics operations. Many graphics systems use 8 bits to represent each of the three primary colors plus 8 bits for a location of a pixel. The addition of speakers and microphones for teleconferencing and video games suggested support of sound as well. Audio samples need more than 8 bits of precision, but 16 bits are sufficient. Every microprocessor has special support so that bytes and half words take up less space when stored in memory, but due to the infrequency of arithmetic operations on these data sizes in typical integer programs, there is little support beyond data transfers. The architects of the Intel i860, which was justified as a graphical accelerator within the company, recognized that many graphics and audio applications would perform the same operation on vectors of these data.

 Although a vector unit was beyond the transistor budget of the i860 in 1989. Like a virus, over time such multimedia support has spread to nearly every desktop microprocessor. HP was the first successful desktop RISC to include such support. As we shall see, this virus spread unevenly. The PowerPC is the only holdout, and rumors are that it is “running a fever.”

The Alpha MAX operations are just byte versions of compare, min, max, and absolute difference, leaving it up to software to isolate fields and perform parallel adds, subtracts, and multiplies on bytes and half words. MIPS also added operations to work on two 32-bit floating-point operands per cycle, but they are considered part of MIPS V and not simply multimedia extensions. One feature not generally found in general-purpose microprocessors is saturating operations. Saturation means that when a calculation overflows, the result is set to the largest positive number or most negative number, rather than a modulo calculation as in two’s complement arithmetic. Commonly found in digital signal processors these saturating operations are helpful in routines for filtering.


7 January 2012

Constructors and Destructors


Virtual Destructors

It is legal and common to pass a pointer to a derived object when a pointer to a base
object is expected. What happens when that pointer to a derived subject is deleted? If
the destructor is virtual, as it should be, the right thing happens—the derived class’s
destructor is called. Because the derived class’s destructor will automatically invoke
the base class’s destructor, the entire object will be properly destroyed.

The rule of thumb is this: If any of the functions in your class are virtual, the destruc-
tor should also be virtual.


Virtual Copy Constructors

As previously stated, no constructor can be virtual. Nonetheless, there are times
when your program desperately needs to be able to pass in a pointer to a base object
and have a copy of the correct derived object that is created. A common solution to
this problem is to create a clone member function in the base class and to make it
virtual. A clone function creates a new copy of the current object and returns that
object.

Because each derived class overrides the clone function, a copy of the derived class is
created. 

6 January 2012

Basic terms before learning coding


Compound Statements

Several statements can be grouped together as a compound statement, which begins
with an opening brace { and ends with a closing brace }. A compound statement can
appear anywhere a single statement could.

Although every statement in a compound statement must end with a semicolon, the
compound statement itself does not end with a semicolon. Here’s an example:
{
temp = a;
a = b;
b = temp;
}

This compound statement swaps the values in the variables a and b using a variable
named temp as a temporary holding place for one value.

Expressions

An expression is any part of a statement that returns a value, as in this simple example:
x = y + 13;

This statement makes the variable x equal to the variable y plus 13. So, if y equals
20, x equals 33. The entire statement also returns the final value of x, so it’s also an
expression. To understand this better, consider a more complex statement:
z = x = y + 13;

This statement consists of three expressions:
 The expression y 
+ 13 is stored in the variable x.

. The expression x
able z.
. The expression z



= y + 13 returns the value of x, which is stored in the vari-


= x = y + 13 returns the value of z, which is not stored.


The assignment operator = causes the operand on the left side of the operator to have
its value changed to the value on the right side of the operator.
Operand is a mathematical term referring to the part of an expression operated upon
by an operator.







The Full Text of Expression.cpp


#include <iostream>
int main()
{
int x = 0, y = 72, z = 0;
std::cout << “Before\n\nx: “ << x << “ y: “ << y;
std::cout << “ z: “ << z << “\n\n”;
z = x = y + 13;
std::cout << “After\n\nx: “ << x << “ y: “ << y;
std::cout << “ z: “ << z << “\n”;
return 0;
}

 This program produces the following output:
Before
x: 0 y: 72 z: 0

After
x: 85 y: 72 z: 85
Three variables are declared and given initial values, which are displayed on lines
5–6. In line 7, expressions assign values to x and z, in that order. The new values are
displayed in lines 8–9.


 Operators

An operator is a symbol that causes the compiler to take an action such as assigning
a value or performing multiplication, division, or another mathematical operation.

Assignment Operator
An expression consists of an assignment operator, an operand to its left called an
l-value, and an operand to its right called an r-value. In the expression grade = 95,
the l-value is grade, and the r-value is 95.

Constants are r-values but cannot be l-values. The expression 95 = grade is not per-
mitted in C++ because the constant 95 cannot be assigned a new value.

The primary reason to learn the terms l-value and r-value is because they may
appear in compiler error messages.


Mathematical Operators
There are five mathematical operators: addition (+), subtraction (-), multiplication
(*), division (/), and modulus (%). C++, like C, does not have an exponentiation oper-
ator to raise a value to a specified power. There is a function to perform the task.
Addition, subtraction, and multiplication act as you’d expect, but division is more
complex.

Integer division differs from ordinary division. When you divide 21 by 4, the result is
a real number that has a fraction or decimal value. By contrast, integer division pro-
duces only integers, so the remainder is dropped. The value returned by 21 / 4 is 5.

The modulus operator % returns the remainder value of integer division, so 21 % 4
equals 1. The integer division 21 / 4 is 5, leaving a remainder of 1.

Finding the modulus can be useful in programming. If you want to display a state-
ment every 10th time that a task is performed, the expression taskCount % 10 can
watch for this. The modulus ranges in value from 0 to 10. Every time it equals 0, the
count of tasks is a multiple of 10.

Floating-point division is comparable to ordinary division. The expression 21 / 4.0
equals 5.25.
 C++ decides which division to perform based on the type of the operands. If at least
one operand is a floating-point variable or literal, the division is floating point. Oth-
erwise, it is integer division.

3 January 2012

What is a frame buffer.


A framebuffer is a video output device that drives a video display from a memory buffer containing a complete frame of data.



Block Diagram




The information in the memory buffer typically consists of color values for every pixel (point that can be displayed) on the screen. Color values are commonly stored in 1-bit binary (monochrome), 4-bit palettized, 8-bit palettized, 16-bit highcolor and 24-bit truecolor formats. An additional alpha channel is sometimes used to retain information about pixel transparency. The total amount of the memory required to drive the framebuffer depends on the resolution of the output signal, and on the color depthand palette size.
Framebuffers differ significantly from the vector displays that were common prior to the advent of the framebuffer. With a vector display, only the vertices of the graphics primitives are stored. The electron beam of the output display is then commanded to move from vertex to vertex, tracing an analog line across the area between these points. With a framebuffer, the electron beam (if the display technology uses one) is commanded to trace a left-to-right, top-to-bottom path across the entire screen, the way a television renders a broadcast signal. At the same time, the color information for each point on the screen is pulled from the framebuffer, creating a set of discrete picture elements (pixels).

24 December 2011

What is "Tally Accounting" its scope and need ?

Tally is a software of accounting which is used for maintaining accounting information.This software makes easy use of accounting.It is easy to use and it is not necessary that a person should have accounting background and should have perfect knowledge about accounting.If a person have a little knowledge about accounting he could work easily on this software.In a few years ago all the work of accounting was done in the papers .At that time to maintain the work of accounting like to maintain cash book,trial balance,profit and loss account and balance sheet it needs more paper work.Because at that time there was no software like tally by which accounting information could be maintained.By using tally software paper work is minimised.At past time to maintain accounting information the organisations need a qualified and professional person who have a deep knowledge of accounting.But today it does not need a professional or who have a deep knowledge about accounting.Who have a little knowledge about accounting and by using this software a person could easily maintain accounting information and could work on it with ease.Today tally software is a popular software as you know at this time every big organisations and every small organisations need to maintain their accounting information.So it is a very usefull software at this time.In this software we study about the three sectors of accounting which are trading sector,service sector and the manufacturing sector.In trading sector we study about the trading companies which companies do their work by trading activities like sale and purchase of goods.for this we have to make the entries in the sale and purchase vouchers which are already existed in this software.It minimise the work of maintaining trading account ,profit and loss account ,balance sheet and trial balance etc.