Design a CPU for Photocopier: 5 Inputs, 5 Outputs

In summary: If you don't have a programming language reference guide, you might try looking online for tutorials or forums. Alternatively, you could try asking a friend who is more experienced in programming for help.
  • #1
common
12
0
hello ladies and gentlemen;
i've a more complex homework this time.

i'm writing my homework down:
"The design of central process unit of a photocopier is wanted."

The inputs of cpu are;
  • copy number in 3 bits,
  • "start copying" input,
  • the input of a sensor
    (the function of the sensor is to detect stucked papers -- but this function is not important in the design)
namely our cpu must have five inputs. and also five outputs which are;
  • 3 bit data which shows number of remaining sheets (R)
  • motor control (M),
  • Print output (B)
During copy process, the M and B outputs must be as shown in figure.
  1. to start copying, copy number is entered in 3 bits. then "start" input applies a pulse.
  2. remaining copy number = entered copy number
  3. after one pulse diagram shown in figure is intercepted, remaining number decreases 1
  4. if R isn't equal to zero, process will be repeated
  5. during copy process, if "stucked paper" input=0, then process will be stopped (M=0, B=0).
yes , i hope you like this homework.
i've three weeks to complete this. i will share my solving progress with you if i advance anything :smile:
 

Attachments

  • time axis.doc
    25 KB · Views: 224
Last edited:
Physics news on Phys.org
  • #2
in this design i will use "GAL22V10" and because of this, i need to learn PAL programming to solve this question.

is there anybody to give a reference that i can learn this programming from,
or is there anybody who can write "the whole command array" that solves this problem.?

i send its datasheet, in attachment. if anybody cares.
 

Attachments

  • gal22v10.pdf
    347.5 KB · Views: 258
Last edited:
  • #3
common said:
yes , i hope you like this homework.
i've three weeks to complete this. i will share my solving progress with you if i advance anything :smile:
Say, common, I think you are the one who is supposed to do this homework, not us. If you get stuck on some aspect of it, please post your work and explain why you are stuck, and we'll try to help. Otherwise, get cranking!
 
  • #4
berkeman said:
Say, common, I think you are the one who is supposed to do this homework, not us. If you get stuck on some aspect of it, please post your work and explain why you are stuck, and we'll try to help. Otherwise, get cranking!

yes berkeman, i know that I'm the ONLY one who is supposed to do this homework. but I've only wanted to share a good question with anybody who is interested in logic design.

ok, if everyone thinks like berkeman, this thread can be deleted.

no problem
 
  • #5
Thanks for sharing common. Berkeman is right, the proper format for the forum is to present your question, show what you have done, and where you're getting stuck. Then we can help steer you in a successful direction. During this effort, we may discuss ideas with you and with other helpers. :smile:
If you haven't read this https://www.physicsforums.com/showthread.php?t=94388 at the top of this topic, it would be a good idea to do that.:wink:
Quote from sticky:
1) Did you show your work? Homework helpers will not assist with any questions until you've shown your own effort on the problem. Remember, we help with homework, we don't do your homework. We already passed those classes, it's your turn to do so.
common said:
hello men, I've a more complex homework this time.
I hope you didn't mean to excude ladies from this discussion.:uhh:
 
Last edited:
  • #6
common said:
or is there anybody who can write "the whole command array" that solves this problem.?
Sure I can, but that's not going to help you learn very much, now is it? :rolleyes:

common said:
is there anybody to give a reference that i can learn this programming from

What language are you programming in? What is your programming language reference guide? Is it something like Synario ABEL? Or Verilog? Have you learned how to code up state machines yet? Start with a hand sketch of the state diagram for your problem, and either code up the state machine directly, or figure out how to make your own state machine with in-line code.
 
  • #7
want to design a cpu?

No.
______________
 
  • #8
berkeman said:
What language are you programming in?
I've just learned that I must use Wincupl...
berkeman said:
Have you learned how to code up state machines yet? Start with a hand sketch of the state diagram for your problem, and either code up the state machine directly, or figure out how to make your own state machine with in-line code.
I'm really got stucked at that point. I'm really stressed, because i couldn't found any idea to start, in spite of I've think hard for the last 5-6 weeks. Really... that's the truth berkeman...o:)
i was too desirous in logic-designing, but I've lost my whole desire, at this moment... because my teacher didn't be a good teacher for us. and now she wants us to solve this problem... :mad:
and I've just learned that nobody in my class could solve...:grumpy:
now, i only request for help
 
  • #9
Well, if you teacher hasn't bothered to teach you yet about state machine design, it will be a little tough complete the assignment. BTW, the title of this thread is a bit misleading, since you are asked to design a simple state machine, and not a full CISC or RISC CPU.

Look in the tutorials for the Wincpul tool that you are using, and look for how they show coding up of state machines. Then you need to do as I mentioned, and turn the problem statement into a Moore state machine diagram. Once you have the diagram, the coding is straighforward.
 
  • #10
berkeman said:
Well, if you teacher hasn't bothered to teach you yet about state machine design, it will be a little tough complete the assignment. BTW, the title of this thread is a bit misleading, since you are asked to design a simple state machine, and not a full CISC or RISC CPU.
Look in the tutorials for the Wincpul tool that you are using, and look for how they show coding up of state machines. Then you need to do as I mentioned, and turn the problem statement into a Moore state machine diagram. Once you have the diagram, the coding is straighforward.

well, i don't want to learn programming first. i need the diagram firstly, as you said. I'm thinking hard for that diagram but there is no result...:frown:

if I've the diagram, i can dissolve the programming ...
 
  • #11
I did a quick google, and here's a tutorial on state machines. There are lots of them on the web:

http://web.cs.mun.ca/~paul/cs3724/material/web/notes/node25.html

You basically need to take the problem statement, and convert it into a set of states. Like, the initial state is the one you go to first, like at a reset. Each state has a set of outputs (the outputs in the problem statement), and your input signals at each clock tick will cause your state machine to change to the appropriate state. Like out of the reset state, if you get an input changing to <something>, you might transition to state y where the outputs are different and appropriate for whatever the input change was.
 
Last edited by a moderator:
  • #12
Yes, berkeman is right -- this really is a state machine. What are you in, some sort of arch and org class? Your book should give you diagrams that are close enough for you to simply modify to fit your design. The "states" are simply your requirements -- if the previous input is zero, do this ... if it's one, do something else. If you thought about it a few minutes and looked through your book it really shouldn't be that difficult to draw a diagram -- your book should also have info and the most popular state machines -- Mealy and Moore. If you get stuck with a specific question people would be able to help you better.
 
  • #13
thank for your interests...

yes, i know i must design a mealy machine... but my book or my teacher are not good sources for me. our teacher didn't solved complex problems like this, during her lessons... :grumpy:

and I'm not sure, how to start solving this.. because i couldn't decided which variables must be the states, and which must be the inputs...
if you help me at this point, i can draw the state diagram...

i thought that, M&B must be the states, and sensor must be the input...
but then, what will the R be? ... must i use two mealy machines?
 

1. How does a CPU in a photocopier work?

A CPU (Central Processing Unit) in a photocopier is responsible for processing and executing instructions. It receives input from various sensors and buttons, performs calculations and operations, and sends instructions to the appropriate components to produce the desired output.

2. What are the 5 inputs for a CPU in a photocopier?

The 5 inputs for a CPU in a photocopier are typically the scan button, number of copies, paper size, paper type, and color selection. These inputs are used to determine the settings for the photocopier and to initiate the copying process.

3. What are the 5 outputs of a CPU in a photocopier?

The 5 outputs of a CPU in a photocopier are the scanned image, number of copies produced, paper size used, paper type used, and color of the copied document. These outputs are a result of the CPU processing the inputs and sending instructions to the appropriate components such as the scanner, printer, and paper tray.

4. How does a CPU in a photocopier handle different paper sizes and types?

A CPU in a photocopier is programmed to recognize various paper sizes and types. When a user inputs their desired paper size and type, the CPU sends instructions to the paper tray and printer to adjust accordingly. It may also adjust the scanning process to ensure the entire document is captured.

5. Can a CPU in a photocopier be upgraded or replaced?

Yes, a CPU in a photocopier can be upgraded or replaced. Just like in a computer, a photocopier's CPU can be upgraded to a newer and faster model to improve its performance. If the current CPU is damaged or malfunctioning, it can also be replaced with a new one to restore the functionality of the photocopier.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
5
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
10
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
6
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
979
  • Engineering and Comp Sci Homework Help
Replies
31
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
17
Views
4K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
4K
  • Engineering and Comp Sci Homework Help
Replies
18
Views
4K
Back
Top