Skip to main content

How Do You Take A Survey On Surveymonkey




hi, i’m carrie anne and welcome to crashcourse computer science. so last episode, using just logic gates, webuilt a simple alu, which performs arithmetic and logic operations, hence the ‘a’ andthe ‘l’. but of course, there’s not much point incalculating a result only to throw it away - it would be useful to store that value somehow, and maybe even run several operations in a row. that's where computer memory comes in! if you've ever been in the middle of a longrpg campaign on your console, or slogging through a difficult level on minesweeper onyour desktop, and your dog came by, tripped and pulled the power cord out of the wall,you know the agony of losing all your progress.


condolences. but the reason for your loss is that yourconsole, your laptop and your computers make use of random access memory, or ram, whichstores things like game state - as long as the power stays on. another type of memory, called persistentmemory, can survive without power, and it’s used for different things; we'll talk aboutthe persistence of memory in a later episode. today, we’re going to start small - literally by building a circuit that can store one.. single.. bit of information. after that, we’ll scale up, and build ourvery own memory module, and we’ll combine


it with our alu next time, when we finallybuild our very own cpu! intro all of the logic circuits we've discussedso far go in one direction - always flowing forward - like our 8-bit ripple adder fromlast episode. but we can also create circuits that loopback on themselves. let’s try taking an ordinary or gate, andfeed the output back into one of its inputs and see what happens. first, let’s set both inputs to 0. so 0 or 0 is 0, and so this circuit alwaysoutputs 0.


if we were to flip input a to 1. 1 or 0 is 1, so now the output of the or gateis 1. a fraction of a second later, that loops backaround into input b, so the or gate sees that both of its inputs are now 1. 1 or 1 is still 1, so there is no change inoutput. if we flip input a back to 0, the or gatestill outputs 1. so now we've got a circuit that records a“1” for us. except, we've got a teensy tiny problem - thischange is permanent! no matter how hard we try, there’s no wayto get this circuit to flip back from a 1


to a 0. now let’s look at this same circuit, butwith an and gate instead. we'll start inputs a and b both at 1. 1 and 1 outputs 1 forever. but, if we then flip input a to 0, becauseit’s an and gate, the output will go to 0. so this circuit records a 0, the oppositeof our other circuit. like before, no matter what input we applyto input a afterwards, the circuit will always output 0. now we’ve got circuits that can record both0s and 1s. the key to making this a useful piece of memoryis to combine our two circuits into what is


called the and-or latch. it has two inputs, a "set" input, which setsthe output to a 1, and a "reset" input, which resets the output to a 0. if set and reset are both 0, the circuit justoutputs whatever was last put in it. in other words, it remembers a single bitof information! memory! this is called a “latch” because it “latchesonto” a particular value and stays that way. the action of putting data into memory iscalled writing, whereas getting the data out is called reading.


ok, so we’ve got a way to store a singlebit of information! great! unfortunately, having two different wiresfor input – set and reset – is a bit confusing. to make this a little easier to use, we reallywant a single wire to input data, that we can set to either 0 or 1 to store the value. additionally, we are going to need a wirethat enables the memory to be either available for writing or “locked” down --which iscalled the write enable line. by adding a few extra logic gates, we canbuild this circuit, which is called a gated latch since the “gate” can be opened orclosed.


now this circuit is starting to get a littlecomplicated. we don’t want to have to deal with all theindividual logic gates... so as before, we’re going to bump up a level of abstraction, andput our whole gated latch circuit in a box -- a box that stores one bit. let’s test out our new component! let’s start everything at 0. if we toggle the data wire from 0 to 1 or1 to 0, nothing happens - the output stays at 0. that’s because the write enable wire isoff, which prevents any change to the memory. so we need to “open” the “gate” byturning the write enable wire to 1.


now we can put a 1 on the data line to savethe value 1 to our latch. notice how the output is now 1. success! we can turn off the enable line and the outputstays as 1. once again, we can toggle the value on thedata line all we want, but the output will stay the same. the value is saved in memory. now let’s turn the enable line on againuse our data line to set the latch to 0. done.


enable line off, and the output is 0. and it works! now, of course, computer memory that onlystores one bit of information isn’t very useful -- definitely not enough to run frogger. or anything, really. but we’re not limited to using only onelatch. if we put 8 latches side-by-side, we can store8 bits of information like an 8-bit number. a group of latches operating like this iscalled a register, which holds a single number, and the number of bits in a register is calledits width.


early computers had 8-bit registers, then16, 32, and today, many computers have registers that are 64-bits wide. to write to our register, we first have toenable all of the latches. we can do this with a single wire that connects to all of their enable inputs, which we set to 1. we then send our data in using the 8 datawires, and then set enable back to 0, and the 8 bit value is now saved in memory. putting latches side-by-side works ok fora small-ish number of bits. a 64-bit register would need 64 wires runningto the data pins, and 64 wires running to the outputs.


luckily we only need 1 wire to enable allthe latches, but that’s still 129 wires. for 256 bits, we end up with 513 wires! the solution is a matrix! in this matrix, we don’t arrange our latchesin a row, we put them in a grid. for 256 bits, we need a 16 by 16 grid of latcheswith 16 rows and columns of wires. to activate any one latch, we must turn onthe corresponding row and column wire. let’s zoom in and see how this works. we only want the latch at the intersectionof the two active wires to be enabled, but all of the other latches should stay disabled.


for this, we can use our trusty and gate! the and gate will output a 1 only if the rowand the column wires are both 1. so we can use this signal to uniquely selecta single latch. this row/column setup connects all our latcheswith a single, shared, write enable wire. in order for a latch to become write enabled,the row wire, the column wire, and the write enable wire must all be 1. that should only ever be true for one singlelatch at any given time. this means we can use a single, shared wirefor data. because only one latch will ever be writeenabled, only one will ever save the data


-- the rest of the latches will simply ignorevalues on the data wire because they are not write enabled. we can use the same trick with a read enablewire to read the data later, to get the data out of one specific latch. this means in total, for 256 bits of memory,we only need 35 wires - 1 data wire, 1 write enable wire, 1 read enable wire, and 16 rowsand columns for the selection. that’s significant wire savings! but we need a way to uniquely specify eachintersection. we can think of this like a city, where youmight want to meet someone at 12th avenue


and 8th street -- that's an address that definesan intersection. the latch we just saved our one bit into hasan address of row 12 and column 8. since there is a maximum of 16 rows, we store the row address in a 4 bit number. 12 is 1100 in binary. we can do the same for the column address: 8 is 1000 in binary. so the address for the particular latch wejust used can be written as 11001000. to convert from an address into somethingthat selects the right row or column, we need a special component called a multiplexer -- whichis the computer component with a pretty cool name at least compared to the alu.


multiplexers come in all different sizes,but because we have 16 rows, we need a 1 to 16 multiplexer. it works like this. you feed it a 4 bit number, and it connectsthe input line to a corresponding output line. so if we pass in 0000, it will select thevery first column for us. if we pass in 0001, the next column is selected,and so on. we need one multiplexer to handle our rowsand another multiplexer to handle the columns. ok, it’s starting to get complicated again,so let’s make our 256-bit memory its own component. once again a new level of abstraction!


it takes an 8-bit address for input - the4 bits for the column and 4 for the row. we also need write and read enable wires. and finally, we need just one data wire, whichcan be used to read or write data. unfortunately, even 256-bits of memory isn’tenough to run much of anything, so we need to scale up even more! we’re going to put them in a row. just like with the registers. we’ll make a row of 8 of them, so we canstore an 8 bit number - also known as a byte. to do this, we feed the exact same addressinto all 8 of our 256-bit memory components


at the same time, and each one saves one bitof the number. that means the component we just made canstore 256 bytes at 256 different addresses. again, to keep things simple, we want to leavebehind this inner complexity. instead of thinking of this as a series ofindividual memory modules and circuits, we’ll think of it as a uniform bank of addressablememory. we have 256 addresses, and at each address,we can read or write an 8-bit value. we’re going to use this memory componentnext episode when we build our cpu. the way that modern computers scale to megabytesand gigabytes of memory is by doing the same thing we’ve been doing here -- keep packagingup little bundles of memory into larger, and


larger, and larger arrangements. as the number of memory locations grow, ouraddresses have to grow as well. 8 bits hold enough numbers to provide addresses for 256 bytes of our memory, but that’s all. to address a gigabyte – or a billion bytesof memory – we need 32-bit addresses. an important property of this memory is thatwe can access any memory location, at any time, and in a random order. for this reason, it’s called random-accessmemory or ram. when you hear people talking about how much ram a computer has - that's the computer’s memory. ram is like a human’s short term or workingmemory, where you keep track of things going


on right now - like whether or not you hadlunch or paid your phone bill. here’s an actual stick of ram - with 8 memorymodules soldered onto the board. if we carefully opened up one of these modulesand zoomed in, the first thing you would see are 32 squares of memory. zoom into one of those squares, and we cansee each one is comprised of 4 smaller blocks. if we zoom in again, we get down to the matrixof individual bits. this is a matrix of 128 by 64 bits. that’s 8192 bits in total. each of our 32 squares has 4 matrices, sothat’s 32 thousand, 7 hundred and 68 bits.


and there are 32 squares in total. so all in all, that’s roughly 1 millionbits of memory in each chip. our ram stick has 8 of these chips, so intotal, this ram can store 8 millions bits, otherwise known as 1 megabyte. that’s not a lot of memory these days -- thisis a ram module from the 1980’s. today you can buy ram that has a gigabyteor more of memory - that’s billions of bytes of memory. so, today, we built a piece of sram - staticrandom-access memory – which uses latches. there are other types of ram, such as dram, flash memory, and nvram.


these are very similar in function to sram,but use different circuits to store the individual bits -- for example, using different logicgates, capacitors, charge traps, or memristors. but fundamentally, all of these technologiesstore bits of information in massively nested matrices of memory cells. like many things in computing, the fundamentaloperation is relatively simple.. it’s the layers and layers of abstraction that’smind blowing -- like a russian doll that keeps getting smaller and smaller and smaller. i’ll see you next week. credits








Just got my check for $500 

Sometimes people don't believe me when I tell them about how much you can make taking paid surveys online...

 So I took a video of myself actually getting paid $500 for paid surveys to finally set the record straight.


   

Comments

Popular posts from this blog

How To Make Legit Money From Your Phone

How To Make Legit Money From Your Phone . Clarity Money will also make suggestions for how you can save more money. Let companies advertise on your phone. What You Need to Know About Hiring a Contractor | How to ... (Johanna Johnson) All you need to do is book through the app, eat at the restaurant, meet the requirements, and you'll How it works is you bet a certain amount of money that you can reach a certain weight goal by a certain date. Lots of original ideas on how to As you might imagine, this isn't necessarily a quick way to make money but once you've got a few investors in your phone We're increasingly being asked about how to make money from Bitcoin. It's a make money app that has a lot of hype around it due to their advertising stating you can "make money while charging your phone" and other passive ways of earning. If taking phone calls isn't your thing, but you still want to work for a big company from home, many ...

How To Make Money Online Fast And Easy With No Deposit Needed

How To Make Money Online Fast And Easy With No Deposit Needed . When you've done whatever it takes to make money fast but struggle to make an impact, sometimes you're left with no. On this page you'll find all the best ways to make money in your spare time whilst at university based on our own experience. Venetian Poker Room Tournaments (Marion Patrick) Make money online easily, just need to know where to work, not to spend their time and money in vain, since there are too many scams that are If you're interested in how to make money online or to set a passive income, you likely have come across ads of such projects. Its app turns your phone into a barcode scanner to make seeing the value of your items even more A standard Robinhood account gives you access to instant deposits and you don't have to wait for your. If that means you need to find alternative ways to bring in money online, or you simply have too much time on your hands. Here a...

How To Make Money From Home With Surveys

how to make money online make money online how to make money how to make money online without investment how to make money online quick how to make money online easy how to make money online fast how to make money online as a teenager how to make money online as a kid how to make money online 2017 how to make money online fast 2017 making money online how to make money from home ways to make money online easy make money online way make money Just got my check for $500  Sometimes people don't believe me when I tell them about how much you can make taking paid surveys online...  So I took a video of myself actually getting paid $500 for paid surveys to finally set the record straight.