Welcome Guest ( Log In | Register )

6 Pages  1 2 3 > » Bottom

Outline · [ Standard ] · Linear+

 Computer Engineering Thread, # 67 members already :D #

views
     
TScharge-n-go
post Oct 12 2005, 03:03 AM, updated 19y ago

Look at all my stars!!
*******
Senior Member
4,060 posts

Joined: Jan 2003
From: Penang / PJ

4 Simple Rules :

1. Post anything related engineering. It can be electronic stuff, gate level stuff or architectural discussion on any computer components.

2. If you don't know anything about engineering, please do not comment here, js read the posts by other members and try to understand them. Well, you can always ask questions if u don't understand smile.gif

3. Questions related to engineering can be asked. No question such as "Is this processor good or not?". Of course you can ask :"Why this proc A is better than proc B?", but expect the answers are in term of engineering.

4. Bump this topic if it's going dead tongue.gif

Well, basically this is a thread for e&e engineering professionals, graduates and undergraduates to discuss some new technology.


COMPUTER / ELECTRONICS ENGINEERING MEMBERS :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1. Silkworm
2. Remysix
3. ikanayam
4. empire23
5. winc87
6. iZuDeeN
7. X10A Freedom
8. nerd nation
9. Tingwc84
10.splitfire
11. nUtZ`
12. Mavik
13. draggy
14. Pillage2001
15. CloudX
16. cafuheva
17. silllver
18. kramuse
19. witchhunter
20. Kagaya
21. ben_panced
22. zt_lee
23. ijan
24. unitron
25. Snoy
26. sooyewguan
27. igor_is300
28. halo
29. zybler
30. martianunlimited
31. Beach_Boy®
32. LaR_c
33. siaokia
34. pakau
35. fridaynite
36. boxsystem
37. stanum
38. pukarix
39. hao
40. LJS
41. Survivor
42. sieg_wahrheit
43. Demon_Eyes_Kyo
44. WhatCanIdo
45. harrychoo
46. Annie
47. `TauFun
48. knight
49. yuyuyu
50. shouta
51. [ r u g a ]
52. NEO.rage
53. shadow_dweller
54. jojoko1982
55. boom_bread
56. wilson88
57. sohkeong
58. lgh
59. bysquashy
60. kUba
61. xavier99
62. william4835
63. ashraff88
64. 8066
65. wilson88
66. speedguy10

and me myself biggrin.gif

This post has been edited by charge-n-go: Dec 19 2006, 11:22 PM
TScharge-n-go
post Oct 12 2005, 03:09 AM

Look at all my stars!!
*******
Senior Member
4,060 posts

Joined: Jan 2003
From: Penang / PJ

Ok, I'll start this thread with a question tongue.gif

I'm stuck at Carry Select Adder (diagram attached).

1. I wonder what is inside the Carry Propagation Logic to compute the Carry Out.

2. Where is the input port X & Y? I really have no idea.

3. For the 4-bit setup (0-3), how the 'Carry' logic works? Is the 1-bit stage linked together via ripple or carry lookahead method?


Thanx for the help !

This post has been edited by charge-n-go: Oct 12 2005, 03:26 AM


Attached thumbnail(s)
Attached Image
TScharge-n-go
post Oct 12 2005, 11:05 AM

Look at all my stars!!
*******
Senior Member
4,060 posts

Joined: Jan 2003
From: Penang / PJ

Thanx ikanayam. Your design saves some transistor at the setup stage biggrin.gif

I was thinking if the setup stage and the Carry logic has something to do with the Carry Look Ahead algorithm.

Setup : P = A+B and G = A.B

Carry Propagate : Cout = P.Cin + G

btw, I need to test on the Carry Select Adder and see how many transistor and the critical path taken for an 8-bit setup, and also if it is bulky when expands to 32-bit in the future. My current design is using two 4-bit CLA link together with ripple carry, i'm afraid when expand it to 32-bit it will be quite slow and bulky.

Here's my CLA + RCA design. The MUX is placed at the input port to select 1 of the 3 sources using the adder (register, multiplier and divider). DEMUX is placed at the output port to do the same function.




Attached thumbnail(s)
Attached Image
TScharge-n-go
post Oct 12 2005, 06:46 PM

Look at all my stars!!
*******
Senior Member
4,060 posts

Joined: Jan 2003
From: Penang / PJ

QUOTE(ikanayam @ Oct 12 2005, 11:14 AM)
why do you have demuxes at the ouput? looks redundant to me. I'm not sure how your design is supposed to be, but can't you just wire the outputs to whichever circuit you want them as inputs?
*
Yup, you are correct, DEMUX looks redundant.

Last time i don't have the 'EN' line for other functional units such as multiplier and divider, so hv to use DEMUX to choose the output. This semester i suppose to minimize the gates and critical path, at the same time remains some good speed.

Sigh.. 1st time doing this kinda thing, many problems here and there. I'm sure you are expert liao fishchicken thumbup.gif


* Who's studying electronic engineering course pls report in here.
We can help each other in any difficulties in engineering wink.gif


AFAIK, only a few are taking this course :
ikanayam, silkworm, empire23, winc87, charge-n-go....

Who else, mari mari lapor diri biggrin.gif

This post has been edited by charge-n-go: Oct 12 2005, 06:46 PM
TScharge-n-go
post Oct 12 2005, 07:27 PM

Look at all my stars!!
*******
Senior Member
4,060 posts

Joined: Jan 2003
From: Penang / PJ

Ohh.. really? He's now working or taking master degree? Maybe taking PhD liao, hahaha.

Ya, my multiplier and divider is using the same Adder/Subtractor with some shifting logic.

btw, how's yr ALU going on fishy?

Well, this is the datapath i designed last semester with another team mate.


Attached thumbnail(s)
Attached Image
TScharge-n-go
post Oct 12 2005, 07:39 PM

Look at all my stars!!
*******
Senior Member
4,060 posts

Joined: Jan 2003
From: Penang / PJ

QUOTE(remysix @ Oct 12 2005, 07:32 PM)
i took computer engineering...about 7 years back...since then, i never use the knowledge in my work life...my work more towards marketing and business...hehe...u r saying u guys are noob...i think i'm noober than u guys r...
sorry for posting non relevant post...
*
icic, nvm. Pls advice us if anything we do is wrong. Added you into the list wink.gif
TScharge-n-go
post Oct 13 2005, 11:24 AM

Look at all my stars!!
*******
Senior Member
4,060 posts

Joined: Jan 2003
From: Penang / PJ

QUOTE(X10A Freedom @ Oct 12 2005, 09:43 PM)
anyways charge-n-go, i suggest adding registers on the input and output if you're gonna implement this on a real board(or FPGA for the matter) unless this is just a theoratical(gate level + simulation) assignment and nothing more

p/s: anyone heard of Viterbi decoder or Convolutional Coding Encoder? got tough time understanding it...
*
Thanx for the advice. I'm not sure if i wanna make into FPGA or not. THe primary goal is to come out a workable design under simulation, secondary is the FPGA implementation on Altera chip.
I've no idea about Convolution Coding Encoder tongue.gif


QUOTE(ikanayam @ Oct 13 2005, 02:05 AM)
Hm... you can integrate your shifting logic into one of the input registers directly if you don't need a barrel shifter. You just have to loop back the connection into a mux and skew the bits left or right by 1. If you need to shift, just select the mux input with the skewed bits. Need 2 shifts? Clock it twice. Of course if single cycle shift performance is important thing then you need a barrel shifter.

Another idea is that you can make the outputs to your multiplier/divider 8 bits wide externally. That way you can make your large mux only 8 bits wide and save a lot of logic there. The key is to output the results in 2 clocks.
*
yup, I'm using Shift Register as input, but not barrel shifter. Multiply and Divide js need to shift 1 bit to left or right, so i js make it to shift when there's a clock. Well, I'm still thinking how to optimize the multiplier bcoz it takes me 16 cycles for an 8-bit MUL.


QUOTE(nUtZ` @ Oct 13 2005, 08:58 AM)
Have fun with propogation delay... wink.gif looks like the cct can run about 200MHz at most..
*
hehe, wat's CCT? notworthy.gif
TScharge-n-go
post Oct 13 2005, 11:31 AM

Look at all my stars!!
*******
Senior Member
4,060 posts

Joined: Jan 2003
From: Penang / PJ

QUOTE(ikanayam @ Oct 13 2005, 05:53 AM)
Ok i got a question, anyone know if it is possible use/modify an adder/subtractor unit to do AND and OR operations on the inputs? I'm talking about a minimal alteration. Trying to get rid of the mux on the output...
*
Here you go ikanayam. That's my logic unit implementation to save some gates and also propagation delay.

The left one is my implementation, the right one is the conventional logic unit using MUX.


Attached thumbnail(s)
Attached Image
TScharge-n-go
post Oct 13 2005, 11:35 AM

Look at all my stars!!
*******
Senior Member
4,060 posts

Joined: Jan 2003
From: Penang / PJ

QUOTE(silkworm @ Oct 13 2005, 11:29 AM)
QUOTE(charge-n-go)
hehe, wat's CCT?
That's the lazy man's way of writing circuit. biggrin.gif
*
lol, i got it now.

anyway, which adder do u think is more appropriate for my design.

8-bit Adder, might be expand to 16-bit or 32-bit in the future. Need to have a balance of power, die size and performance.

Currenly I'm using 2x 4-bit CLA ripple together to be an 8-bit one. I'm not sure if it is efficient enough when scale up to 32-bit.

I have 2 more choices : Carry Select Adder & 1 level CLA.

So which do u think is a better approach?
btw, I still have no idea to start designing a carry select adder, hahaha. Need to figure it out by today.
TScharge-n-go
post Oct 13 2005, 12:53 PM

Look at all my stars!!
*******
Senior Member
4,060 posts

Joined: Jan 2003
From: Penang / PJ

ikanayam, thanx for yr advice. Well, i think i'll do some research on all kinds of adder. U know what, when i get the material online, cant really understand the transistor leve diagram bcoz i nv learnt b4 (pathetic ler my uni, nv teach tongue.gif)

QUOTE(ikanayam @ Oct 13 2005, 12:44 PM)
That's the beauty of ECE, it's such a wide field. From software to hardware to physics. My focus is mostly in digital logic design and this stuff is what i love most. Smaller better faster.
*
Hehehe, we got the same taste. I m a noob in physical electronics stuff.
TScharge-n-go
post Oct 13 2005, 01:13 PM

Look at all my stars!!
*******
Senior Member
4,060 posts

Joined: Jan 2003
From: Penang / PJ

QUOTE(ikanayam @ Oct 13 2005, 12:58 PM)
Transistor level circuits are pretty different from gate level circuits and generally they can be optimized a lot more. They don't always directly map to gate level stuff (OR gates might simply be replaced by wires joined together), so you do not want to look into the the transistor vs gate level stuff too much and get yourself confused.
*
I dunno anything like tat, hahah

btw, here's some stuff i get online thumbup.gif


Attached thumbnail(s)
Attached Image
TScharge-n-go
post Oct 13 2005, 01:39 PM

Look at all my stars!!
*******
Senior Member
4,060 posts

Joined: Jan 2003
From: Penang / PJ

Yeah, but there is very little speed improvement at 8-bit, so don't think I can choose that. The project primary goal is to have a nice adder at 8-bit level, expandable nicely to higher bit is optional actually.

But i think Carry Select is out of question bcoz it's huge and takes a lot of power. Left only with CLA 1 level and my current design (4-bit CLA per block and ripple them together).
TScharge-n-go
post Oct 13 2005, 07:36 PM

Look at all my stars!!
*******
Senior Member
4,060 posts

Joined: Jan 2003
From: Penang / PJ

QUOTE(X10A Freedom @ Oct 13 2005, 05:40 PM)
if i recall properly(kinda rusty a bit thx to those superb EDA tools that help u do the work), people normally use carry select in small scale(4 to 8 bits) and use CLA to cascade/expand to bigger word size(it's kinda optimized between speed and size)
don't bother about the input gates first, coz for me, i'll derive out the gates and switch all of them to NAND gate(or NOR, can be done using EDA tools). coz if you use too much different gates(AND, OR, NOR, NOT) together, you incur much higher cost(imagine the amount of ICs u need to use)
*
alrites, thanx for your advice biggrin.gif

QUOTE(ikanayam @ Oct 13 2005, 06:31 PM)
Hm... not sure i'm really getting what you're saying... why would using different gates incur higher cost? You can probably use less gates in total if you can use different gates than just 1 gate to generate all functions right?
*
I think it's bcoz each IC have an array of same gates, so if we mix the gates, we need a few ICs to construct a circuit. Besides, from one of the book i borrowed from library (not with me now), it says the NAND and NOR gate has lower latency compare to AND, OR and XOR. Well, all these is based on IC design, not sure about FPGA thou.

Thanx draggy for the info, and Ash, u can ask the question here as long as it's related to engineering smile.gif
TScharge-n-go
post Oct 13 2005, 07:43 PM

Look at all my stars!!
*******
Senior Member
4,060 posts

Joined: Jan 2003
From: Penang / PJ

QUOTE(nUtZ` @ Oct 13 2005, 07:37 PM)
Its best to use NAND gates because (IIRC) it uses about 3 transistors to design it.. By mixing up all the gates, it makes it harder to manufacture. By having only a single NAND, it is easier to organize the transistor to have optimal routing between the gates. It is easier to make the mask for the cct too..

Another point about only using NAND is the simplification in calculating the propogational delay with in the cct. hence easier to clock it up..
*
Well, that's new info to me biggrin.gif

Anyway, do you know how many transistors in AND, OR, NOT and XOR?
Do u know of any good websites about all these things.? notworthy.gif
TScharge-n-go
post Oct 13 2005, 08:59 PM

Look at all my stars!!
*******
Senior Member
4,060 posts

Joined: Jan 2003
From: Penang / PJ

Thanx nutz, winc87 and X10 Freedom.

QUOTE
actually don't bother about learning all these first coz i'm sure u gonna learn it in your final year
but if you're really interested, you should take a look at books that are into IC design

Sadly, I'm in final year and already taken all the computer subjects (i take it earlier than schedule and push the maths based subj to the final year). My uni (MMU) kinda stupid ler, never teach all these to computer majoring student. I don't even know what is PMOS NMOS circuit like. All i studied is digital logic design and digital computer design for discreet electronics. (all gate level only, and hv to learn VHDL myself). I wonder why i need to take subjects like Analag Comm, Digital Comm (using fourier analysis), electric power system, electrical machine and stuff like that.

Well, i proposed '8-bit CPU' as my final year project title. Already have the basic design except control unit. Now i need to refine and upgrade anything possible 1st before finalize the control unit design. Sigh... it's a tough job. sweat.gif

Anyway, thanx for yr kind advice wink.gif

This post has been edited by charge-n-go: Oct 13 2005, 09:00 PM
TScharge-n-go
post Oct 13 2005, 11:34 PM

Look at all my stars!!
*******
Senior Member
4,060 posts

Joined: Jan 2003
From: Penang / PJ

I have another question about the gates.

May i know isit possible to have 5 input per gate? I'm afraid of fan-in problem, bcoz from the book "Princilples of Digital Design' by Daniel Gajski, i see the max of 4 input gates only, don't have 5 input one.

btw, I'm gonna simulate using Altera MaxPlus II, dunno if it support FPGA or not. Sorry for the noob question bcoz I m self learning VHDL and simulator and kinda blur now. Thanx !
TScharge-n-go
post Oct 14 2005, 12:35 AM

Look at all my stars!!
*******
Senior Member
4,060 posts

Joined: Jan 2003
From: Penang / PJ

QUOTE(nUtZ` @ Oct 13 2005, 11:58 PM)
if you want to put in 5 gates also can.. not a problem.. but depending on what method you are using.. TTL? GTL?
*
erm... actually i mean 5 input per gate tongue.gif

QUOTE(cafuheva @ Oct 13 2005, 11:59 PM)
EE final student here, currently studying SILVACO software RM200,000. Anyone know SILVACO here? lets discuss about it. I have a couple Q to ask.
*
Nope, sorry I've no idea on that. I only know a bit of MaxPlus II laugh.gif


QUOTE(X10A Freedom @ Oct 14 2005, 12:19 AM)
the only problem you have to worry is your coding style
at certain times, different coding style might give you certain delays.......

of course, if you want to be slightly lazy, u can try use HDL Designer(Mentor Graphics software) to create the block structure first, then use it to convert into Verilog or VHDL, save some time to write those redundant port maps and entities
XD
*
Hmm... thanx for the tips thumbup.gif

btw, can i count the delay using conventional way? For example, 2 leg NAND gate has 4ns delay (from the same book mentioned above) and 2 leg AND gate has 6ns. So in FPGA, do the gates having the same delay regardless of the type?

Well, actually i'm using hand drawn (using corel draw actually) to draw out all the gate circuit design, then I'll write the VHDL (using architecture behaviour) in MaxPlus 2. Isit the same as what u meant using the Mentor graphic?
What kind of coding style is more efficient? Behavorial or architecture?


Edit : I have another doubts tongue.gif
If wanna save power when any of the functional unit is idle, can i js use clock gating? Any other implementation besides that? Thanx notworthy.gif

This post has been edited by charge-n-go: Oct 14 2005, 01:06 AM
TScharge-n-go
post Oct 14 2005, 06:13 PM

Look at all my stars!!
*******
Senior Member
4,060 posts

Joined: Jan 2003
From: Penang / PJ

X10 Freedom, thanx for the info



QUOTE(witchhunter @ Oct 14 2005, 11:47 AM)
I tot MMU got offer VHDL? Under Digital Computer Design during Delta 3rd Trimester.

WE have about only 5-8 subjects that are different. BUt I agree that subjects like Power Electronics, Digital Comm and Analog Comm are seems quite irrelevant. Don't really like those subjects.
*
Digital Computer Design has VHDL, but the lecturer didnt really teach, js go through damn quickly. He teaches mainly on the gate level design.

Power Electronics is important, bcoz u need the knowledge to construct power supply unit. Well, Analog Comm, Digital Comm, Intro to power system, Intro to machine and stuff like that is really useless. I hope they can include stuff like IC design and transistor level optimization like what others have told me here.


TScharge-n-go
post Oct 14 2005, 06:17 PM

Look at all my stars!!
*******
Senior Member
4,060 posts

Joined: Jan 2003
From: Penang / PJ

QUOTE(cafuheva @ Oct 14 2005, 01:14 PM)
MMU have  SILVACO or not? CADENCE?
*
MMU is using Altera software. I'm not sure about silvaco.


QUOTE
DSP? nah......DSP is even worse.....with all those Discrete Signal Processing theories, it'll be much difficult IMO, but of course, the implementation part is slightly easier(coz all you need is Simulink to do the donkey job)

No thanx to DSP, I'm scared of Fourier and other wave equations doh.gif

This post has been edited by charge-n-go: Oct 14 2005, 06:18 PM
TScharge-n-go
post Oct 14 2005, 06:29 PM

Look at all my stars!!
*******
Senior Member
4,060 posts

Joined: Jan 2003
From: Penang / PJ

QUOTE(X10A Freedom @ Oct 14 2005, 06:22 PM)
actually you can't say Digital Comm is not important vice versa
i used to thought why do i have to study that when all i want to do in the future is just IC designer, but now, i need to design a decoder IC that is used for decoding signals from CDMA's, Satelite transimissions etc
they teach you all these so that in your final year, you're more prepare to do more things and not limited to certain topics(as you don't always get the topic you want)
anyways, transistor optimizations is a headache(all those formulas like IV curve etc and not so friendly PSPICE programs)
normally people have EDA tool that does the donkey job(people are always rushing againts time that's why they rather splash cash on those expensive EDA tools)
*
Actually in MMU, we took 'data communication' subject for all the CDMA, transmission (in binary), compression technique and stuff like that. Digital Comm basically is an extension where we learn about how the digital signal is represented in Fourier and how to convert sinc to square function and etc. Then we need to design some filter to select the correct bandwidth, and some stuff like tat, cant really remember liao biggrin.gif
Well, if we cant get the FYP topic (like me), I'm proposing my own one, so i guess tat's not an issue tongue.gif

6 Pages  1 2 3 > » Top
 

Change to:
| Lo-Fi Version
0.0327sec    0.83    7 queries    GZIP Disabled
Time is now: 21st December 2025 - 05:37 PM