Quick question for the EEs

duragezic

Lifer
Oct 11, 1999
11,234
4
81
In lab we had to implement a 8-bit adder. I chose to write the adder module in Verilog, simply using two 8-bit inputs and the sum as a 9-bit output. Then I had to write another module to convert the result into two hex digits to be displayed on a seven-segment display. In the report I'm asked what kind of adder I used. Well I sort of have an idea about a couple different types, but it's not that I actually coded the addition. I didn't have to worry about Cin/Cout, only used the line Sum = x + y;... So I looked up information on the Verilog operators but I couldnt see that they defined the addition operator as a certain type of adder. Any ideas?
 

duragezic

Lifer
Oct 11, 1999
11,234
4
81
Hmm, ripple it is. I've been searching high and low for any sort of explanation, but I guess I just gotta make something up about it being ripple-carry.
 

CanOWorms

Lifer
Jul 3, 2001
12,404
2
0
Originally posted by: duragezic
Hmm, ripple it is. I've been searching high and low for any sort of explanation, but I guess I just gotta make something up about it being ripple-carry.

Well, in the use of FPGAs, just using '+' would be a ripple carry because a ripple-carry is unusually faster than other adders because of the FPGA architecture (unless you're going for a very large adder) since it's given for free and optimized.
 

Deeko

Lifer
Jun 16, 2000
30,213
12
81
carry lookahead is fun.

I'm not familiar with verilog...is it strictly behavioral architectures? That's too easy :p

<- just wrote a structural design for a single cycle MIPS datapath in Symphony last night.
 

TuxDave

Lifer
Oct 8, 2002
10,571
3
71
Originally posted by: Deeko
carry lookahead is fun.

I'm not familiar with verilog...is it strictly behavioral architectures? That's too easy :p

<- just wrote a structural design for a single cycle MIPS datapath in Symphony last night.

It's all about the Ling's Adder yo... (different version of a traditional p-g carry lookahead adder)