| Author |
Message |
windsnow
Joined: 07 Nov 2004 Posts: 8
|
07 Nov 2004 9:46 Am I not smart enough to do the assignment? |
|
|
|
|
I have spent 4 days reading the textbook and still have no idea what to do for this assignment? (at least not sure what the ASM diagram should look like) Anybody think this is hard or I am not smart enough?
http://www.cs.sfu.ca/CC/250/dixon/ASSIGNMENTS/043/assign3.pdf
plz give me help.
|
|
| Back to top |
|
 |
Bluechem
Joined: 05 Sep 2004 Posts: 71 Helped: 1
|
07 Nov 2004 11:15 Re: Am I not smart enough to do the assignment? |
|
|
|
|
| Quote: |
| Anybody think this is hard or I am not smart enough? |
never think that way. in the worst case one hasn't tried hard enough, so it is not a question of smartness at all. tell what you have done till now, I hope it is a big list.
|
|
| Back to top |
|
 |
windsnow
Joined: 07 Nov 2004 Posts: 8
|
07 Nov 2004 18:03 Re: Am I not smart enough to do the assignment? |
|
|
|
|
| Bluechem wrote: |
| Quote: |
| Anybody think this is hard or I am not smart enough? |
never think that way. in the worst case one hasn't tried hard enough, so it is not a question of smartness at all. tell what you have done till now, I hope it is a big list. |
I have some idea for the ASM diagram, which is the initial step for this assignment, but don't know if it is right or not.
|
|
| Back to top |
|
 |
eltonjohn
Joined: 22 Feb 2002 Posts: 1751 Helped: 28
|
07 Nov 2004 18:28 Re: Am I not smart enough to do the assignment? |
|
|
|
|
Ok BEFORE YOU DO THE CODING in VHDL or other ..
DESIGN IT .. I mean with paper and pencil DRAW all the components .See how the control signals are supposed to work
Then look for a piece of code that wil describe the bigguest block then add the logic that you already designed ...
|
|
| Back to top |
|
 |
flatulent
Joined: 19 Jul 2002 Posts: 4875 Helped: 324 Location: Middle Earth
|
07 Nov 2004 19:12 Re: Am I not smart enough to do the assignment? |
|
|
|
|
One thing to cheer you up is to note that sometimes people get fixed ideas on how to do things and overlook other ways. In psychology there is a condition called 'functional fixity' that is similar to this. This is independent of intelligence or skills. People do need to practice exercising their imaginations by thinking of all of the ways, no matter how ridiculous, to solve a problem. Try doing this in ordinary everyday situations when you have the time to ponder before doing something or after.
The English word engineer comes from the Greek or Latin word for ingenuity. This application of imagination is most important in doing engineering designs.
|
|
| Back to top |
|
 |
joc_06
Joined: 28 Nov 2003 Posts: 51 Helped: 2
|
07 Nov 2004 21:18 Am I not smart enough to do the assignment? |
|
|
|
|
I'm relearning VHDL now. After looking at your webpage i think i will use it to help me. I will work through your assignments and if i can do them i will help you out.
No promises as i'm busy at work but i used to be handy at vhdl so i might come up with something...
|
|
| Back to top |
|
 |
windsnow
Joined: 07 Nov 2004 Posts: 8
|
08 Nov 2004 0:18 Re: Am I not smart enough to do the assignment? |
|
|
|
|
| joc_06 wrote: |
I'm relearning VHDL now. After looking at your webpage i think i will use it to help me. I will work through your assignments and if i can do them i will help you out.
No promises as i'm busy at work but i used to be handy at vhdl so i might come up with something... |
thank you so much joc_06, I have read all the sections of the textbook and still got no idea.
Later my friend told me there is no use at all by just reading the textbook.
I got what you guys meant, thank you all.
and to joc_06, if you can come up with the ASM diagram first, plz tell me. Since the ASM diagram is the first step for this project, but I don't know what's this ASM diagram should look like. Thi is project is due at Nov 11, 4 days away from now. I don't want to give up.
thanks for all your encouragement and helps.
|
|
| Back to top |
|
 |
joc_06
Joined: 28 Nov 2003 Posts: 51 Helped: 2
|
08 Nov 2004 9:14 Am I not smart enough to do the assignment? |
|
|
|
|
I will help you but i will not give the project to you. I'm not even sure if i can do it myself.
I was a student myself only a little time ago and looking back at some of the projects i copied i realise i would have been much better off for the exams and future work if i had done the stuff myself.
I'll look at it today...
|
|
| Back to top |
|
 |
windsnow
Joined: 07 Nov 2004 Posts: 8
|
08 Nov 2004 10:11 Re: Am I not smart enough to do the assignment? |
|
|
|
|
| joc_06 wrote: |
I will help you but i will not give the project to you. I'm not even sure if i can do it myself.
I was a student myself only a little time ago and looking back at some of the projects i copied i realise i would have been much better off for the exams and future work if i had done the stuff myself.
I'll look at it today... |
okay, thank you so much.
You know ASM diagram right? it's like a flowchart.
If you can do it, give me hints plz.
|
|
| Back to top |
|
 |
joc_06
Joined: 28 Nov 2003 Posts: 51 Helped: 2
|
08 Nov 2004 14:18 Am I not smart enough to do the assignment? |
|
|
|
|
I have seen but never done an asm chart before.
We always used state diagrams.
Your teacher uses much notation different to mine. I must look through your notes. i would approach the problem differently but that is no good to you so i will do it his way which requires learning asm stuff.
|
|
| Back to top |
|
 |
Google AdSense

|
08 Nov 2004 14:18 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
windsnow
Joined: 07 Nov 2004 Posts: 8
|
08 Nov 2004 17:12 Re: Am I not smart enough to do the assignment? |
|
|
|
|
| joc_06 wrote: |
I have seen but never done an asm chart before.
We always used state diagrams.
Your teacher uses much notation different to mine. I must look through your notes. i would approach the problem differently but that is no good to you so i will do it his way which requires learning asm stuff. |
joc_06, how far you get now? if you have state diagram, I know how to change them to ASM diagram. Can you plz post whatever you have now? I appreciate. I will use them for refernce only, because I really want to learn it instead of copying others.
|
|
| Back to top |
|
 |
joc_06
Joined: 28 Nov 2003 Posts: 51 Helped: 2
|
09 Nov 2004 11:57 Am I not smart enough to do the assignment? |
|
|
|
|
Your teachers notes are not good and i have no access to mano book.
The problem is ambiguous and i need to make assumptions to complete it.
It will take some time...
|
|
| Back to top |
|
 |
windsnow
Joined: 07 Nov 2004 Posts: 8
|
09 Nov 2004 17:55 Re: Am I not smart enough to do the assignment? |
|
|
|
|
| joc_06 wrote: |
Your teachers notes are not good and i have no access to mano book.
The problem is ambiguous and i need to make assumptions to complete it.
It will take some time... |
yup, I agree, many ppl avoid taking him. I am working on it too, and getting help from my other friends.
|
|
| Back to top |
|
 |
joc_06
Joined: 28 Nov 2003 Posts: 51 Helped: 2
|
10 Nov 2004 15:43 Am I not smart enough to do the assignment? |
|
|
|
|
I have done the state diagram and it seems ok.
I have no scanner so i cannot upload it but it's not too hard.
Firstly regardless of how you implement a problem in hardware the state diagram's or asm diagram's should be similiar so your teachers req for 2 diagrams for the two hardware scenario's seems wrong to me.
For the diagram i say. its a moore machine with 4 states. an initial S0 which represents cl=0, pop = 0, push =0 and emp=0.
If in S0 you are input push=1 and full=0 then you goto S1 where top value=data in
if in S0 you are input pop=1 and if emp=0 then goto S2 where out=next value in stack
etc etc.
Also fill in where you go from S1 to Sx and S2 to Sx etc.
It is not that hard.
The hardware implementation now will begin to differ slightly if you use choice 1 - reg file or 2 - 4 shift reg's.
You will need a 4 bit counter to see if stack is full or not too.
I do not think asm diagrams are good method but you say you can convert state to asm.
Now must work...
|
|
| Back to top |
|
 |
windsnow
Joined: 07 Nov 2004 Posts: 8
|
11 Nov 2004 9:05 Re: Am I not smart enough to do the assignment? |
|
|
|
|
| joc_06 wrote: |
I have done the state diagram and it seems ok.
I have no scanner so i cannot upload it but it's not too hard.
Firstly regardless of how you implement a problem in hardware the state diagram's or asm diagram's should be similiar so your teachers req for 2 diagrams for the two hardware scenario's seems wrong to me.
For the diagram i say. its a moore machine with 4 states. an initial S0 which represents cl=0, pop = 0, push =0 and emp=0.
If in S0 you are input push=1 and full=0 then you goto S1 where top value=data in
if in S0 you are input pop=1 and if emp=0 then goto S2 where out=next value in stack
etc etc.
Also fill in where you go from S1 to Sx and S2 to Sx etc.
It is not that hard.
The hardware implementation now will begin to differ slightly if you use choice 1 - reg file or 2 - 4 shift reg's.
You will need a 4 bit counter to see if stack is full or not too.
I do not think asm diagrams are good method but you say you can convert state to asm.
Now must work... |
I got what you said, but I am working with other friends, and we decide to use only one state, and we ask our instrutor and he said one state is okay too. what do u think? Are you going to code them in vhdl files? if yo u do use your own method, and if it works, plz send the files to me.
|
|
| Back to top |
|
 |
joc_06
Joined: 28 Nov 2003 Posts: 51 Helped: 2
|
11 Nov 2004 9:17 Am I not smart enough to do the assignment? |
|
|
|
|
1 state??
Is he off his head? I cannot see how this is possible or practical. Why would you need 4 shift reg's so.
I cannot wait to see his solution if he posts it up.
As for the coding i am toying with a few ideas which i would like to get verified before i proceed.
I reckon a counter is required to know if the stack is full/ what value is the highest value but as i dont have a vhdl compiler i prob wont finish this.
Will he post up solns?
|
|
| Back to top |
|
 |
KHALID
Joined: 28 Oct 2004 Posts: 2
|
13 Nov 2004 2:36 Re: Am I not smart enough to do the assignment? |
|
|
|
|
You guys are mis led , I solved it wait I will post it. in two days time.
very good to solve.
|
|
| Back to top |
|
 |
joc_06
Joined: 28 Nov 2003 Posts: 51 Helped: 2
|
15 Nov 2004 11:56 Am I not smart enough to do the assignment? |
|
|
|
|
| I would very much like to see your soln. Am v busy at work so impossible to spend much time at this plus problem is ambiguous. I can go one way or another at it.
|
|
| Back to top |
|
 |
joc_06
Joined: 28 Nov 2003 Posts: 51 Helped: 2
|
22 Nov 2004 17:17 Am I not smart enough to do the assignment? |
|
|
|
|
A question for windsnow:
did your teacher ever post up the soln for ass#3??
|
|
| Back to top |
|
 |