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),

## [LogicDesign] Fixed Point Arithmetic Implementation [Tutorial/Guide]

Hi All, Would anyone recommend a GOOD Tutorial/Guide on the implementation of the Fixed Point arithmetic? Interview questions related to the subject are welcomed as well! Thank you!

## VHDL types and subtypes

In VHDl, Is it possible to do arithmetic operations between a subtype and it's father type ? For example: If signals A and C are definded as integers and signal B is defined as a natural. Is it legal to write: C <= A + B;

## power consumed for arithmetic operation in MATLAB

Hi, all, How to know the power consumed by each of the + - * / and sqrt operations in matlab? Thanks!

## Arithmetic operations

The difference is in the operation mode. FPU aritmethic is performed sequentially under processor control, one operation at a time. arithmetic core functions are placed in the data path and operating in parallel. Parallelization involves both higher speed and higher resource utilization.

## std_logic_vector to integer

You are using two numeric libraries, that should be used mutually exclusive: the official IEEE.numeric_std and legacy IEEE.STD_LOGIC_ARITH, originally introduced by Synopsis before numeric_std came out. IEEE.STD_LOGIC_UNSIGNED is another Synopsys library, that allows arithmetic operations on std_logic_vector without defining unsigned objects explic

## Microprocessor and Interfacing Design Project

Hi..... I need help to Design a calculator that will perform basic arithmetic operations +,-,*, /, on integers.using 8086 microprocessor and 7 segment display for the result. Refere " The 8086 Book " it has what you are looking for. 17 years ago I did a similar thing using 8085. If I remember correctly I have us

## Microcontroller/Microprocessor Maximum Frequency?

Firstly, MIPS is only a comparative figure. What's even more important is the instructions and how the controller gets a particular thing done. Say for example, you need to have 2 fractional numbers added. Let's take the 5MIPS controller has a better way of managing arithmetic and Logic operations, and so gets this addition done within 5 instructio

## Translate verilog code to vhdl code...

arithmetic operations (e.g. compare) can't be performed on STD_LOGIC_VECTOR, the have to be performed on either SIGNED or UNSIGNED signals. But it would be legal syntax with STD_LOGIC_UNSIGNED library in effect. It don't understand the purpose of this expression ("00" & COUNT) >= "000010010000" Why not COUNT >= "0010010000" Unf

## some verilog operations ??

This is explained better with an example: Logical shift: Shift Right number 1010 several times: 1) 0101 2) 0010 3) 0001 4) 0000 MSB is always filled with zero. arithmetic Shift: Shift Right number 1010 several times: 1) 1101 2) 1110 3) 1111 4) 1111 MSB is always filled with the previous MSB value. Another example of ari

## ASSEMBLY LANGUAGE PROGRAMES

Hay i want Assembly language code for following programmes Reading and displaying string, and numerical data Basic string operations Basic arithmetic operations Simple table processing (array of strings, matrices) Simple file operations Macros Mixed language (...)

## F(x)=1/x Basic Arithmetic Operation For Computer System

Hi...I am a student.I have got a final project is : "Design and simulation of an arithmetic circuit that computes inverse of an integer". Computing the inverse of an integer is one of the basic arithmetic operations supported in general purpose computer systems.The efficient design of this functional unit helps to perform fast divi

## how to reuse operations? Help needed

could anyone correct my codes? Thanks! Here is a task for reusing operations. In this task you must reuse arithmetic operations as defined below. First you must create a data-flow graph and schedule operations for all the required solution.# Each of your designs performs an algorithm - "o<=c1*i1+i2+i3+c4*i4;". # (...)

## forth processor - source code for arithmetics needed

hi, i try to use forth processor and connect it to a memory,then i want to write a program which do arithmetic operations,write and read from memory but it's difficult to do.can anyone give me a source code and tell me how to transform it to .bin, because i searched but i don't find what i need.thanks

## how to determine whether microcontroller is 8-bit or 16-bit?

The manufacturer tells us in their full color brochures ;-) Seriously: it's the width of the data bus; most arithmetic operations, data moves etc. work on this number of bits. JW

## Arithmetic operations over STD_ULOGIC_VECTOR

Can we apply arithmetic operation directly over std_ulogc_vectors I was facing problem(while applying arithmetic operations over std_ulogic_vector) I resolve it by using To_StdLogicVector To_UStdLogicVector Is there any other solution? Thanks

## Need help for implementing arithmetic operations !

Which is the most effective way to implement the following arithmetic operations in HDL? evaluate the expressions |x-y| < z and f(x,z) = -x ; z <-x x ; z > x x ; otherwise

## Power consumption in arithmetic operations

Hi, I would like to know the power consumption of arithmetic operations such as addition, subtraction, multiplication and division. I've code each arithmetic opertion in Verilog and estimated the power using XPOWER from Xilinx tools, but it shows 0. Only leakge power consumption are estimated. I'm thinking that the design is simple (...)

## Help Required Regarding Radix-8 FFT Implementation

There faster G. Johnson and Matteo Frigo, "A modified split-radix FFT with fewer arithmetic operations", IEEE Trans. Signal Processing 55 (1), 111?119 (2007).

## DSP VS MICROPROCESSOR

Nothing much except that the DSPs are microprocessors (or microcontroller) with special hardware support to do complex arithmetic operations. This helps them to crunch lot of data in very short time compared to normal micros.

## req:algorithm for calculation of 10^x & abs(complex) &am

Ercegovac M.D., Lang T.(2004) Digital arithmetic(709s).zip Koren I.(2002) Computer arithmetic Algorithms(2nd Ed)(281s).djvu Muller J.-M.(1997) Elementary functions algorithms and implementation(218s).djvu Can you give me any link for these books? Thanks

## thesis on multipliers

Hi, I suggest you search for the following ebooks on Internet (emule) : *- arithmetic and Logic in Computer Systems (Wiley Series) by Mi Lu *- Digital Computer arithmetic Datapath Design Using Verilog HDL: CD-ROM included (International Series in operations Researchand Management Science) by James E. Stine *- Synthesis of (...)

## Math operations on Q format data

hi all, i need good reference material or C code that performs arithmetic operations like addition, subtraction, multiplication and division on signed Q10 or Q15 data format considering issues like overflow, underflow, trunctation and roudn-off that may arise during operations .... seeking ur help ... Added after 2 mi

## How to compute Hamming Distance without bit-level process

Hi everybody, I need to know if there is any article/paper/algorithm that discusses about how I can compute Hamming Distance without having to take into account the two codewords in bit-level. In other words, Is there any algorithm to compute hamming distance between two positive integer number by using arithmetic operations without any bit-leve

## Floating point representation in HDL

Here is a link to an HDL design of a Floating Point Unit : Description This is a 32-bit floating point unit (FPU), which does arithmetic operations on floating point numbers. The FPU complies fully with the IEEE 754 Standard. Features FPU supports

## Need help on fixed point arithmetic operations

I need some information on fixed point arithmetic operation like if we multiply two Q23.19 format numers what will be the resultant format and how do you reprsent it in 32bit etc give some document on this topic... thanks in advance..

## Need VHDL/Verilog library for Floating point and fixed point

Hi I need VHDL/Verilog library for Floating point and fixed point arithmetic Regards, Vishwa

## microcontroller applying basic terms to external components

I need help to apply these programming terms to external components please What would i use Sorting for "controlling" external components? How can i use arithmetic operations to "control" external components? Subrountines are inside loops or after loops mostly? How can i use Boolean expressions to "control" external components? How can

## how to call xinilix signed multiplier

What software tools and language are you using? When compiling VHDL or Verilog with XST, you can simply use the "*" multiply operator and signed operands. Refer to the "arithmetic operations" section in the XST User Guide. XST will automatically infer the multiplier. This makes your HDL easier to read and more portable than explicitly instantiat

## Implementing an Embedded Multiplier Using VHDL

"Infer" means to use the * operator in your HDL. It is very convenient and fast, if you pipeline carefully. If you explicitly place a "MULT18X18", then you are instantiating, not inferring. The HDL compiler does the inferring. If you use XST then read the XST User Guide -> HDL Coding Techniques -> arithmetic operations -> Multipliers. Also