
Memory and Processors
Quiz by Mable Mathew
Customize this quiz to suit your class
Instantly translate to 100+ languages
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
Give this quiz to my class
Define Firmware
A type of software that controls a hardware device
Define Processor Cycle
The process of fetching a programinstruction from memory, decoding the actions required by the instruction andthen executing those actions.
Define Firmware
Define Processor Cycle
Clock Cycles per second
Memory is used to store instructions so that the __________can fetch the instructions quickly in order to process them.
The 3 types of memory are-
RAM stands for
ROM stands for
Software is loaded into RAM from a __________________________
The processor then fetches software instructions from ______________ and executes them
RAM is VOLATILE meaning that it cannot store data when it has no power
RAM is used to store programs that are in use.
The more RAM that isn't available the more programs can run at the same time
What does the computer do when the computer doesn’t have enough space in RAM ,
Secondary storage is much faster than RAM
As space in RAM becomes available, active programs are moved into RAM from ______________ and this will improve the performance of those programs.
ROM stores data ___________________.
In PCs and laptops ROM is used to _______________________ from secondary storage.
PROM stands for -
PROM can be written multiple times
EPROM stands for
EEPROM stands for
ROM is used to store the BIOS of a computer
The data is ROM is easier to change the data in RAM
RAM is used to store the data the user is currently working on
Flash memory is a type of
Flash memory is volatile
A processor is made up of one or more Central Processing Units.
Processor speed is measured in ____________________________________
Clock cycles are measured in ___________ (any 2)
Dis you like the quiz ????
Software , processors and memory
Comptia A+ sybex wiley study guide fifth edition chapter 1 motherboards, processors and memory
COAR5111d Theme 2: Supporting processors and upgrading memory
In this video we take a look at the 0:02 fetch to code 0:03 execute cycle including its effect on 0:06 the various registers we've previously 0:12 [Music] 0:14 discussed a computer is defined Definition 0:17 as an electronic device that takes an 0:20 input 0:22 processes data 0:25 and delivers output 0:29 in this simple example you can see we're 0:31 taking the input 5 0:35 we're multiplying it by 2 that's our 0:37 process 0:39 and we're outputting 10. 0:44 but this could be way more complex for 0:46 example of a game console 0:48 the input could be the buttons you press 0:50 on a controller 0:53 the processes would then be carried out 0:55 by the console itself 0:59 and the output would be some form of 1:01 update to a monitor 1:02 and sound out for a speaker possibly 1:04 vibration feedback through the 1:06 controller 1:10 to process data a computer follows a set 1:13 of instructions 1:14 known as a computer program 1:18 if we take the lid off a typical desktop 1:20 computer we can identify 1:22 two critical components the memory 1:26 that stores the program and the central 1:29 processing unit or processor 1:31 which is under this large fan and 1:33 carries out the instructions 1:37 a computer carries out its function by 1:40 fetching 1:41 instructions decoding them and then 1:43 executing them 1:44 in a continuous repetitive cycle 1:46 billions of times a second 1:48 let's look at each of these stages in a 1:50 little more detail Fetch 1:53 so let's start with the fetch stage the 1:55 very first thing that happens 1:57 is the program counter is checked as it 2:00 holds the address 2:01 of the next instruction to be executed 2:07 the address stored is then copied into 2:09 the memory address register 2:14 the address is then sent along the 2:16 address bus to main memory 2:18 where it waits to receive a signal from 2:21 the control 2:22 bus so it knows what to do 2:27 as we want to read the data that's 2:29 stored in memory address 2:30 0 0 0 0 the control unit sends 2:34 a read signal along the control bus to 2:36 main memory 2:41 now main memory knows the data needs to 2:44 be read 2:45 the content stored in memory address 000 2:49 can be sent along the data bus to the 2:51 memory data register 2:56 now as we're currently in the process of 2:58 fetching an instruction 3:00 the data received by the memory data 3:03 register gets copied 3:04 into the current instruction register 3:11 the instruction effectively has now been 3:14 fetched from memory 3:16 just before we proceed to the decode 3:18 phase we now 3:19 increment the program counter so that 3:22 the address it contains 3:24 points to the address of the next 3:26 instruction which will need to be 3:30 executed 3:32 the instruction now being held in the 3:33 current instruction register 3:35 is ready to be decoded 3:39 now as we mentioned in the previous 3:41 video the instruction is made up of two 3:43 parts 3:44 we have the op code that's what it is we 3:47 need to do 3:50 and we have the operand what are we 3:53 going to do it to 3:55 now the operand could contain the actual 3:57 data 3:58 or indeed it could contain an address of 4:01 where the data is to be found 4:06 by decoding this instruction we can see 4:08 the operation we need 4:10 is a load operation so we need to load 4:14 the contents of memory location0101 4:18 into the cpus accumulator 4:25 in the exam a simple model will be used 4:27 to describe the 4:29 structure of any given instruction 4:32 you're not going to be expected to 4:34 define how an opcode is made up 4:36 but simply to interpret opcodes in the 4:39 given context of an exam 4:40 question in the example here 4:44 you can see there's a total of 16 4:46 different opcodes available 4:48 and this is because we're using four 4:50 bits for our representation 4:56 so now we've fetched the instruction and 4:59 we've decoded it so we know what we need 5:00 to do 5:01 we're finally ready to execute it 5:05 so we now send address 0101 5:08 to the memory dress register 5:13 now we're in the memory address register 5:15 we can finally send the address 5:18 down the address bus to main memory 5:24 this time we want to read the data 5:26 that's stored in memory 5:28 and so the control unit again sends a 5:30 read signal along the control bus 5:36 so main memories now receive an address 5:38 and a read signal 5:40 so the content stored at memory location 5:43 0101 5:44 can now be sent along the data bus back 5:46 to the cpu 5:47 and into the memory data register 5:54 finally the contents of the memory data 5:56 register are copied to the accumulator 5:59 and this is one of a number of general 6:00 purpose registers found in the cpu 6:04 this first instruction is now complete Branching 6:11 so what does this program actually do 6:14 you should be able to work it through 6:16 carefully and figure it out 6:19 we're now pointing instructions zero 6:21 zero zero one in the program counter 6:23 and we're ready to fetch the second 6:25 instruction 6:27 at the end of this video we're gonna 6:29 provide you with the answer 6:34 so let's talk a second about programs 6:37 that branch 6:40 on the left here we have a very simple 6:42 piece of pseudo code 6:44 line zero says first execute this line 6:46 of code 6:47 line 1 now execute this line and then 6:50 line 2 says 6:52 if the age is greater than 18 then 6:56 we're going to execute lines 3 and 4 6:58 otherwise 6:59 we're going to execute lines six and 7:02 seven 7:03 so this program doesn't necessarily 7:05 follow strictly in sequence from line 7:07 zero through to seven there's a chance 7:10 here the program may branch and jump 7:14 around 7:16 so we're going to pretend that this 7:17 program has been loaded into memory 7:20 each line of code on the left here has 7:23 ended up 7:24 as a location in memory now this is not 7:27 strictly how this would happen in this 7:28 one-to-one way 7:29 but for the purpose of example it's 7:31 absolutely fine 7:35 so the program counter starts by 7:37 pointing to memory address zero 7:39 and we fetch the first instruction 7:41 decode it and execute it 7:44 it then updates and tells us the next 7:47 instruction 7:48 is zero zero zero one because remember 7:50 the program counter is being incremented 7:52 so we fetch it decode it and we execute 7:55 line one of our program 7:59 we then fetch line two which in binary 8:01 is one 8:02 zero 8:06 now at this point depending on what 8:10 happens during the execution 8:11 of line two the program may be required 8:15 to fetch line three from memory or 8:18 line five from memory 8:25 so let's look at how this actually works 8:27 because we've said the program counter 8:28 simply gets incremented 8:31 well in the current instruction register 8:33 we have an instruction with the op code 8:36 0 1 1 0. 8:41 now when we look this up in the decode 8:43 unit we discover that this 8:45 code means branch always 8:51 this replaces the value held in the 8:54 program counter 8:56 with the contents of the operand that's 8:58 the second part of the instruction 9:01 from the current instruction register so 9:03 this case 9:04 one zero zero one 9:09 now when the next fetch cycle begins the 9:12 program counter is obviously checked 9:14 and as its contents have been previously 9:16 updated to a new memory location 9:19 and not simply incremented the program 9:22 effectively is able to jump 9:24 around memory 9:28 so having watched this video you should 9:30 be able to answer the following key 9:32 question 9:33 how does a cpu work 9:39 okay so let's um answer the question we 9:41 posed 9:42 earlier what did that program actually 9:48 do 9:50 so this is the first fetch to code 9:53 execute cycle 9:55 and this is the one that we ran through 9:57 in detail earlier 9:58 it effectively loaded the contents of 10:01 the memory 10:02 stored at location location0101 10:05 into the accumulator in other words 10:08 the dna number 3 is moved 10:11 from memory into the cpu 10:18 we then proceed onto the second fetch 10:20 decode execute cycle 10:23 now this one adds the contents of memory 10:27 located at 0 1 1 0 10:30 to the current contents of the 10:32 accumulator 10:34 so in other words the dna number one 10:38 because that's what's stored at address 10:40 zero one one zero 10:43 is added to the number three that was in 10:45 the accumulator 10:46 the results are stored back over the 10:48 accumulator 10:49 so effectively we've done three plus one 10:53 equals four 10:58 the third fetch to code execute cycle 11:00 stores the contents which are in the 11:02 accumulator 11:03 into memory location zero one one one 11:07 and that's because the op code the first 11:09 part of this current instruction 11:10 zero zero one one is the command to 11:13 store when we look it up in the decoder 11:15 unit 11:16 so in other words the result of the 11:17 previous calculation three plus one 11:19 equals four 11:20 is now written back into main memory 11:28 the fourth fetch decode execute cycle 11:30 outputs the contents of the accumulator 11:33 remember they were copied into main 11:34 memory but they're still held in the 11:35 accumulator 11:37 so in this simple abstraction the number 11:40 four is now 11:41 output to the user so they can see the 11:43 result of the calculation 11:49 the fifth and final fetch code execute 11:51 cycle 11:52 brings a halt to the current program 11:58 so this very simple program which has 12:01 five 12:02 fetch decode execute cycles has 12:04 performed the calculation 12:06 three plus one is then stored the result 12:09 in main memory 12:10 and displayed the result four to the 12:12 user 12:13 and in a high-level language this may 12:15 look something very similar to the 12:17 following two lines of code 12:20 sum variable equals num1 plus num2 12:24 print sum to the user 12:27 so you can start to get an appreciation 12:29 here of how the high level code you 12:32 write actually ends up being fetched 12:34 decoded 12:35 and executed inside a processor 12:38 of course your processor is doing 12:40 billions and billions of these 12:42 operations a second 12:43 which when you think about it is really 12:45 very impressive 12:52 [Music] 13:03 you. make 10 questions for a standerd of a level
She went by the name of Belisa Crepusculario, not because she had been baptized with that name or given it by her mother, but because she herself had searched until she found the poetry of "beauty" and "twilight" and cloaked herself in it. She made her living selling words. She journeyed through the country from the high cold mountains to the burning coasts, stopping at fairs and in markets where she set up four poles covered by a canvas awning under which she took refuge from the sun and rain to minister to her customers. She did not have to peddle her merchandise because from having wandered far and near, everyone knew who she was. Some people waited for her from one year to the next, and when she appeared in the village with her bundle beneath her arm, they would form a line in front of her stall. Her prices were fair. For five centavos she delivered verses from memory, for seven she improved the quality of dreams, for nine she wrote love letters, for twelve she invented insults for irreconcilable enemies. She also sold stories, not fantasies but long, true stories she recited at one telling, never skipping a word. This is how she carried news from one town to another. People paid her to add a line or two: our son was born, so-and-so died, our children got married, the crops burned in the field. Wherever she went a small crowd gathered around to listen as she began to speak, and that was how they learned about each others' doings, about distant relatives, about what was going on in the civil war. To anyone who paid her fifty centavos in trade, she gave the gift of a secret word to drive away melancholy. It was not the same word for everyone, naturally, because that would have been collective dece it. Each person received his or her own word, with the assurance that no one else would use it that way in this universe or the Beyond. Belisa Crepusculario had been born into a family so poor they did not even have names to give their children. She came into the world and grew up in an inhospitable land where some years the rains became avalanches of water that bore everything away before them and others when not a drop fell from the sky and the sun swelled to fill the horizon and the world became a desert. Until she was twelve, Belisa had no occupation or virtue other than having withstood hunger and the exhaustion of centuries. During one interminable drought, it fell to her to bury four younger brothers and sisters, when she realized that her turn was next, she decided to set out across the 2 plains in the direction of the sea, in hopes that she might trick death along the way. The land was eroded, split with deep cracks, strewn with rocks, fossils of trees and thorny bushes, and skeletons of animals bleached by the sun. From time to time she ran into families who, like her, were heading south, following the mirage of water. Some had begun the march carrying their belongings on their back or in small carts, but they could barely move their own bones, and after a while they had to abandon their possessions. They dragged themselves along painfully, their skin turned to lizard hide and their eyes burned by the reverberating glare. Belisa greeted them with a wave as she passed, but she did not stop, because she had no strength to waste in acts of compassion. Many people fell by the wayside, but she was so stubborn that she survived to cross through that hell and at long last reach the first trickles of water, fine, almost invisible threads that fed spindly vegetation and farther down widened into small streams and marshes. Belisa Crepusculario saved her life and in the process accidentally discovered writing. In a village near the coast, the wind blew a page of newspaper at her feet. She picked up the brittle yellow paper and stood a long while looking at it, unable to determine its purpose, until curiosity overcame her shyness. She walked over to a man who was washing his horse in the muddy pool where she had quenched her thirst. "What is this?" she asked. "The sports page of the newspaper," the man replied, concealing his surprise at her ignorance. The answer astounded the girl, but she did not want to seem rude, so she merely inquired about the significance of the fly tracks scattered across the page. "Those are words, child. Here it says that Fulgencio Barba knocked out El Negro Tiznao in the third round." That was the day Belisa Crepusculario found out that words make their way in the world without a master, and that anyone with a little cleverness can appropriate them and do business with them. She made a quick assessment of her situation and concluded that aside from becoming a prostitute or working as a servant in the kitchens of the rich there were few occupations she was qualified for. It seemed to her that selling words would be an honorable alternative. From that moment on, she worked at that profession, and was never tempted by any other. At the beginning, she offered her merchandise unaware that words could be written outside of newspapers. When she learned otherwise, she calculated the infinite possibilities of her trade and with her savings paid a priest twenty pesos to teach her to read and write, with her three 3 remaining coins she bought a dictionary. She poured over it from A to Z and then threw it into the sea, because it was not her intention to defraud her customers with packaged words. One August morning several years later, Belisa Crepusculario was sitting in her tent in the middle of a plaza, surrounded by the uproar of market day, selling legal arguments to an old man who had been trying for sixteen years to get his pension. Suddenly she heard yelling and thudding hoofbeats. She looked up from her writing and saw, first, a cloud of dust, and then a band of horsemen come galloping into the plaza. They were the Colonel's men, sent under orders of El Mulato, a giant known throughout the land for the speed of his knife and his loyalty to his chief. Both the Colonel and El Mulato had spent their lives fighting in the civil war, and their names were ineradicably linked to devastation and calamity. The rebels swept into town like a stampeding herd, wrapped in noise, bathed in sweat, and leaving a hurricane of fear in their trail. Chickens took wing, dogs ran for their lives, women and children scurried out of sight, until the only living soul left in the market was Belisa Crepusculario. She had never seen El Mulato and was surprised to see him walking toward her. "I'm looking for you," he shouted, pointing his coiled whip at her, even before the words were out, two men rushed her -- knocking over her canopy and shattering her inkwell -- bound her hand and foot, and threw her like a sea bag across the rump of El Mulato's mount. Then they thundered off toward the hills. Hours later, just as Belisa Crepusculario was near death, her heart ground to sand by the pounding of the horse, they stopped, and four strong hands set her down. She tried to stand on her feet and hold her head high, but her strength failed her and she slumped to the ground, sinking into a confused dream. She awakened several hours later to the murmur of night in the camp, but before she had time to sort out the sounds, she opened her eyes and found herself staring into the impatient glare of El Mulato, kneeling beside her. "Well, woman, at last you've come to," he said. To speed her to her senses, he tipped his canteen and offered her a sip of liquor laced with gunpowder. She demanded to know the reason for such rough treatment, and El Mulato explained that the Colonel needed her services. He allowed her to splash water on her face, and then led her to the far end of the camp where the most feared man in all the land was lazing in a hammock strung between two trees. She could not see his face, because he lay in the deceptive shadow of the leaves and the indelible shadow of all his years as a bandit, but she imagined from the way his 4 gigantic aide addressed him with such humility that he must have a very menacing expression. She was surprised by the Colonel's voice, as soft and well-modulated as a professor's. "Are you the woman who sells words?" he asked. "At your service," she stammered, peering into the dark and trying to see him better. The Colonel stood up, and turned straight toward her. She saw dark skin and the eyes of a ferocious puma, and she knew immediately that she was standing before the loneliest man in the world. "I want to be President," he announced. The Colonel was weary of riding across that godforsaken land, waging useless wars and suffering defeats that no subterfuge could transform into victories. For years he had been sleeping in the open air, bitten by mosquitoes, eating iguanas and snake soup, but those minor inconveniences were not why he wanted to change his destiny. What truly troubled him was the terror he saw in people's eyes. He longed to ride into a town beneath a triumphal arch with bright flags and flowers everywhere, he wanted to be cheered, and be given newly laid eggs and freshly baked bread. Men fled at the sight of him, children trembled, and women miscarried from fright, he had had enough, and so he had decided to become President. El Mulato had suggested that they ride to the capital, gallop up to the Palace, and take over the government, the way they had taken so many other things without anyone's permission. The Colonel, however, did not want to be just another tyrant, there had been enough of those before him and, besides, if he did that, he would never win people's hearts. It was his aspiration to win the popular vote in the December elections. "To do that, I have to talk like a candidate. Can you sell me the words for a speech?" the Colonel asked Belisa Crepusculario. She had accepted many assignments, but none like this. She did not dare refuse, fearing that El Mulato would shoot her between the eyes, or worse still, that the Colonel would burst into tears. There was more to it than that, however, she felt the urge to help him because she felt a throbbing warmth beneath her skin, a powerful desire to touch that man, to fondle him, to clasp him in her arms. All night and a good part of the following day, Belisa Crepusculario searched her repertory for words adequate for a presidential speech, closely watched by El Mulato, who could not take his eyes from her firm wanderer's legs and virginal breasts. She discarded harsh, cold words, words 5 that were too flowery, words worn from abuse, words that offered improbable promises, untruthful and confusing words, until all she had left were words sure to touch the minds of men and women's intuition. Calling upon the knowledge she had purchased from the priest for twenty pesos, she wrote the speech on a sheet of paper and then signaled El Mulato to untie the rope that bound her ankles to a tree. He led her once more to the Colonel, and again she felt the throbbing anxiety that had seized her when she first saw him. She handed him the paper and waited while he looked at it, holding it gingerly between thumbs and fingertips. "What the shit does this say," he asked finally. "Don't you know how to read?" "War's what I know," he replied. She read the speech aloud. She read it three times, so her client could engrave it on his memory. When she finished, she saw the emotion in the faces of the soldiers who had gathered round to listen, and saw that the Colonel's eyes glittered with enthusiasm, convinced that with those words the presidential chair would be his. "If after they've heard it three times, the boys are still standing there with their mouths hanging open, it must mean the thing's damn good, Colonel" was El Mulato's approval. "All right, woman. How much do I owe you?" the leader asked. "One peso, Colonel." "That's not much," he said, opening the pouch he wore at his belt, heavy with proceeds from the last foray. "The peso entitles you to a bonus. I'm going to give you two secret words," said Belisa Crepusculario. "What for?" She explained that for every fifty centavos a client paid, she gave him the gift of a word for his exclusive use. The Colonel shrugged. He had no interest at all in her offer, but he did not want to be impolite to someone who had served him so well. She walked slowly to the leather stool where he was sitting, and bent down to give him her gift. The man smelled the scent of a mountain cat issuing from the woman, a fiery heat radiating from her hips, he heard the terrible whisper of her hair, and a breath of sweetmint murmured into his ear the two secret words that were his alone. "They are yours, Colonel," she said as she stepped back. "You may use them as much as you 6 please." El Mulato accompanied Belisa to the roadside, his eyes as entreating as a stray dog's, but when he reached out to touch her, he was stopped by an avalanche of words he had never heard before; believing them to be an irrevocable curse, the flame of his desire was extinguished. During the months of September, October, and November the Colonel delivered his speech so many times that had it not been crafted from glowing and durable words it would have turned to ash as he spoke. He travelled up and down and across the country, riding into cities with a triumphal air, stopping in even the most forgotten villages where only the dump heap betrayed a human presence, to convince his fellow citizens to vote for him. While he spoke from a platform erected in the middle of the plaza, El Mulato and his men handed out sweets and painted his name on all the walls in gold frost. No one paid the least attention to those advertising ploys; they were dazzled by the clarity of the Colonel's proposals and the poetic lucidity of his arguments, infected by his powerful wish to right the wrongs of history, happy for the first time in their lives. When the Candidate had finished his speech, his soldiers would fire their pistols into the air and set off firecrackers, and when finally they rode off, they left behind a wake of hope that lingered for days on the air, like the splendid memory of a comet's tail. Soon the Colonel was the favorite. No one had ever witnessed such a phenomenon: a man who surfaced from the civil war, covered with scars and speaking like a professor, a man whose fame spread to every corner of the land and captured the nation's heart. The press focused their attention on him. Newspapermen came from far away to interview him and repeat his phrases, and the number of his followers and enemies continued to grow. "We're doing great, Colonel," said El Mulato, after twelve successful weeks of campaigning. But the Candidate did not hear. He was repeating his secret words, as he did more and more obsessively. He said them when he was mellow with nostalgia; he murmured them in his sleep; he carried them with him on horseback; he thought them before delivering his famous speech; and he caught himself savoring them in his leisure time. And every time he thought of those two words, he thought of Belisa Crepusculario, and his senses were inflamed with the memory of her feral scent, her fiery heat, the whisper of her hair, and her sweetmint breath in his ear, until he began to go around like a sleepwalker, and his men realized that he might die before he ever sat in the presidential chair. "What's got hold of you, Colonel," El Mulato asked so often that finally one day his chief broke 7 down and told him the source of his befuddlement: those two words that were buried like two daggers in his gut. "Tell me what they are and maybe they'll lose their magic," his faithful aide suggested. "I can't tell them, they're for me alone," the Colonel replied. Saddened by watching his chief decline like a man with a death sentence on his head, El Mulato slung his rifle over his shoulder and set out to find Belisa Crepusculario. He followed her trail through all that vast country, until he found her in a village in the far south, sitting under her tent reciting her rosary of news. He planted himself, spraddle-legged, before her, weapon in hand. "You! You're coming with me," he ordered. She had been waiting. She picked up her inkwell, folded the canvas of her small stall, arranged her shawl around her shoulders, and without a word took her place behind El Mulato's saddle. They did not exchange so much as a word in all the trip; El Mulato's desire for her had turned into rage, and only his fear of her tongue prevented his cutting her to shreds with his whip. Nor was he inclined to tell her that the Colonel was in a fog, and that a spell whispered into his ear had done what years of battle had not been able to do. Three days later they arrived at the encampment, and immediately, in view of all the troops, El Mulato led his prisoner before the Candidate. "I brought this witch here so you can give her back her words, Colonel," El Mulato said, pointing the barrel of his rifle at the woman's head. "And then she can give you back your manhood." The Colonel and Belisa Crepusculario stared at each other, measuring one another from a distance. The men knew then that their leader would never undo the witchcraft of those accursed words, because the whole world could see the voracious-puma eyes soften as the woman walked to him and took his hand in hers. Copyright © 1989 by Isabel Allende From The Stories of Eva Luna, Translated by Margaret Sayers Peden
Memory and Learning
Memory and Multitasking
Memory and storage