Search Engine www.edaboard.com

# Arithmetic Operations

49 Threads found on edaboard.com: Arithmetic Operations

## Atmel ATMEGA 328p Ture (accumulators or working registers?)

They are general purpose registers . All arithmetic and logic operations operate on those registers; you can use them as source or destination of instructions without saving to and loading from RAM different from accumulator , because in accumulator based architecture the output of ALU always saved on a single register

## fixed point arithmetic in verilog

Hi, I need help regarding fixed point arithmetic operations, There are two numbers one is of 24 bits in this 1 bit for sign and 13 bits for integer and 10 bits for fractional part.The second number is 16 bits in which 1 bit for sign and 15 bits for fractional part. when i multiply both numbers i will get 39 bits (N1 + N2-1) then i have to add

## Programming in C language for 8051 Micro Controller

Logic is same as assembly language or is there any other formula that i will use and my work is easy? It's much easier that writing assembler, arithmetic operations and I/O format conversions can be performed by C-compiler libraries. For the latter, you should read the compiler documentation.

## How to design a Calculator in VHDL for arithmetic operations to be displayed on LCD ?

How to design a Calculator in VHDL for arithmetic operations to be displayed on LCD ? arithmetic operations include Add,compare,AND,OR . Also,input of calculator is from linear feedback shift register? How many components will be needed in design?

## what is the appropriate library for having arithmetic operation on vectors?

reg0 <= (0001*x,0011*x,0101*x,0111*x,1001*x,1011*x,1101*x,1111*x); All signals involved in the arithmetic operations should have unsigned type, otherwise type casts are necessary. The array type of reg0 should be defined respectively. 0001 etc. aren't valid unsigned literals.

## Error Message With VHDL CODE

std_logic_vector isn't a numeric data type. No arithmetic operations defined for it. You can use unsigned type instead Or use the non-IEEE library std_arithmetic_unsigned. Or apply type casts like y<= std_logic_vector(unsigned(not(a)) + unsigned("00000001"));

## VHDL rules for arithmetic operations

Hello, 1.When multiplying 2 unsigned vectors in VHDL, must they be at the same it legal to multiply an unsigned vector with an integer? Or both operands must be of the same type?

## Custom synthesis library for basic arithmetic operations

Hi, I am using Synopsys DC for synthesizing Verilog code to gate level netlist . I have designed a customized adder and I want it to be used where there is addition in my functional Verilog code, e.g., wire a,b,c; assign a = b + c; Right now, it seems DC uses DW library by default. How to make synthesis library out of my

## [Moved] Doubt on C programming (swapping of variables)

Hi Friends, how to swap two variables without using third variable without arithmetic operations and without bitwise operator. thanks for helping me.

## verilog signed operation in modelsim

I have written a verilog file that implements some arithmetic operations, I defined my signals as wire signed or reg signed. when I simulate that on isim simulator it does the operation as specified, with signed arithmetic. but when I simulate the same file in modelsim it behaves as if the signals are unsigned! I have t

## Interrupt in the pic microcontroller

interrupt service functions would in addition to the Program Counter and status register (results of arithmetic operations such as overflow, negative result, etc) would also save any other registers which may be used in the function. This may be automatic, e.g. in C, or under the programmers control, e.g. in assembly language. These would then be

## Embedded C programme

Explain what you are trying to do. It looks like you are trying to extend the contents of the array by filling it in with the contents of another array, that isn't adding which implies arithmetic operations, it's concatenaton. You might be able to overlay the second array after the first by creating a union the size of the resulting array and enc

## Trigonometric functions and arithmetic in VHDL

I'm still relatively new to VHDL and I'm having trouble working out how to implement trigonometric functions. I need to implement the following function in VHDL to determine the angle from an inclinometer, and any advice on how to do this would be much appreciated. alpha = arcsin( (Vout-Offset)/0.035 ) [/

## Getting string of Data from a keypad in Pic Mikroc

Dear All I have made a simple calculator using pic16F877A in Mikroc. Now I want to improve it. I want to do operations on string instead of single single digit. Like 220*450, 556+778 etc. earlier its is just for single digit like 4+8, 9-4 etc. pls help me in this regard and Also I want to make functions of arithmetic operations. Do help (...)

## PIC Assembly: operations on variables larger than 1 byte

The 8 bit processors only operate on bytes. Unless you have a processor that can operate on pairs of bytes (some can do 16 bit arithmetic) you must manipulate larger numbers yourself. Keith

## Fix point Arithmetic

Hello Dear I want to use some arithmetic operations such as (+,_,*) in my design. The design is fix point. Could you please tell me, If I use (+,_,*) symbols in my vhdl code, is it synthesize correctly or not? Or I need to design the units ( n_bit full adder, for instance) then write the code structurally. ( consider it that, I don't start to cod

## HELP: Learning Fixed point C coding

The following are some tutorials covering Fixed Point arithmetic: Fixed-point math in C Fixed-Point arithmetic: An

## Arithmetic operations using op-amps

I need to perform Vout= 0.5 V1 + 0.6 V2 + 0.9V3 - 0.8 V4 -0.9 V5 I know that I have to use superposition.I can easily solve those negative terms simply by assuming Rf and then finding out R1,.. to be connected to the negative terminal of op-amp. But for finding out the positive terms I have many equations and I think I have to solve three

## Arithmetic operations in vhdl

I have made a program for PI controller and the excerpts are as follows- v1<= v_prev + (k1*iq_error)+(k2*f_prev1)+(k3*f_prev2); All the variables are std logic vector ( 7 downto 0) but there is an error in execution of this code- * can not have such operands in this context. I have also included IEEE.NUMERIC_STD.ALL; but still error persis

## Repeating generate for n times

I want to design a processor that one part of which should be like this W(k)=Pre_W(k)-3*W(k-1) pre_W(k)=∑x1(i)^3 i=0 to 7 and my arithmetic operations are all floating point so i should port map them which i cant use process , to perform this I write the code below s74:multiplier port map (a =>z1(i),