======Part 2====== =====Entries===== ====Entry 5: March 16th, 2012 3:40 EST. BDC Lair, 34% moon==== Today was a fun-filled talk about instruction sets. We are in the process of creating an instruction set forour 6502 wannabe. Each instruction is allocated 4 bytes of memory, and are laid out as follows. |instruction|first byte|second byte|third byte|fourth byte| |and|000.00.00.x|00.xxxxxx|xxxxxxxx|xxxxxxxx| |or|001.00.00.x|00.xxxxxx|xxxxxxxx|xxxxxxxx| |not|010.00.xxx|00.xxxxxx|xxxxxxxx|xxxxxxxx| |if/branch|011.00.xxx|xxxxxxxx|branch address|branch address| |move|100.xx.xx.x|xxxxxxxx|xxxxxxxx|xxxxxxxx| These are not yet fully developed, as you can see by move and others, but they are great progress!. I also started to develop my schedule for next semester. It looks like I will be taken hpc1, hardware 101, electricity 101, and another computer course that yet again has slipped my mind! that should be 13 credits, so financial aid? i think so! ====March 28th, 2012; 10:25 EST==== This weeks experiences haven't been fun filled, but I have certainly learned a lot. Maybe it is time for a little recap: Storage: Volatile vs. Non-volatile. Volatile memory refers to short term memory, such that is only kept when there is power to the memory. An example of this type of memory is RAM, which is used to store information temporarily while the computer is running. An example of this RAM is CPU RAM, which is used as quick access storage for the CPU. Non-Volatile memory refers to long term memory, such that is kept whether there is power to the computer or not. An example of this type of memory is your hard drive, where most of your computers information is stored. Understanding the difference between these two helps to shed light on what RAM is used for. Since the RAM is cleared every time the computer is powered off, it must hold information that is created when the computer is started, or when a program is started, but does not affect the programs start-up. In other words it does not contain any of the instructions for the computer of it's programs, just the information they create that is pertinent to it's current running state. ====Entry 7: March Day, 2012==== This is a sample format for a dated entry. Please substitute the actual date for "Month Day, Year", and duplicate the level 4 heading to make additional entries. As an aid, feel free to use the following questions to help you generate content for your entries: * What action or concept of significance, as related to the course, did you experience on this date? * Why was this significant? * What concepts are you dealing with that may not make perfect sense? * What challenges are you facing with respect to the course? Remember that 4 is just the minimum number of entries. Feel free to have more. ====Entry 8: March Day, 2012==== This is a sample format for a dated entry. Please substitute the actual date for "Month Day, Year", and duplicate the level 4 heading to make additional entries. As an aid, feel free to use the following questions to help you generate content for your entries: * What action or concept of significance, as related to the course, did you experience on this date? * Why was this significant? * What concepts are you dealing with that may not make perfect sense? * What challenges are you facing with respect to the course? Remember that 4 is just the minimum number of entries. Feel free to have more. =====Keywords===== {{page>asmpart2&nofooter}} =====Experiments===== ====Experiment 4==== ===Question=== How can an ethernet cable provide power to an end device? ===Resources=== *http://en.wikipedia.org/wiki/Power_over_Ethernet *http://www.poweroverethernet.com/ ===Hypothesis=== Power over ethernet is done by sending a dc current over four of the wires. ===Experiment=== I will research PoE and find an example of how PoE sends a dc current over the same line that data is sent over. Also, there is a PoE phone in the lair, so i will mess around with that to see it in action. ===Data=== I hooked an IP phone up to a PoE supplier that adds a dc current to the ethernet cable. I also plugged an active ethernet cable into the PoE supplier so that it was supplying a dc current and an internet signal over the same line. Wikipedia displays a great table that shows the pins used in a PoE setup for both 10/100 and gigabyte PoE connections. ===Analysis=== Based on the data collected: * Was your hypothesis correct? yes * Was your hypothesis not applicable? no * Is there more going on than you originally thought? A little bit, PoE doesn't just send a dc signal over the lines, there is a standard as to which wires are used. The amount of power sent is always 36watts. * What shortcomings might there be in your experiment? I don't know of any, but i could always lick the end and find out. ===Conclusions=== PoE is a very powerful tool that can be very useful when there are a lot of IP phones or wireless access points that need to periodically be reset. All one has to do is simply reboot the source of the ethernet cables and all end devices will be reset. ====Experiment 5==== ===Question=== If I am connected to a gigabyte switch that has a dedicated line from roadrunner, will the download/upload of my computer by a gigabyte? ===Resources=== *tomshardware.com *http://en.wikipedia.org/wiki/Ethernet *ethernetresources.com/sizeofspeed/speed$T10100 ===Hypothesis=== I can only reach speeds of 100mbps or whatever the incomming line allows me to reach. ===Experiment=== I will hook my laptop up to a gigabyte router and do speed testing like speedtest.net, command prompt things to check speed rates, and network and sharing center. ===Data=== Speedtest.net claims 96mbps, 100mbps and 92mbps. network and sharing center claims anywhere from 56-400 mbps depending on what i'm downloading. command prompt, essentially doing the same thing speedtest.net, claims about 92-98mbps. ===Analysis=== Based on the data collected: * Was your hypothesis correct? Yes! I received speeds of up to 100mbps * Was your hypothesis not applicable? no * Is there more going on than you originally thought? not that i can see * What shortcomings might there be in your experiment? testing with gigabyte capabilities. * What shortcomings might there be in your data? none that i know of. ===Conclusions=== Your connection speed is based on your hardware/connection. If everything allows 1000mbps, then you could essentially get 1000mbps. If you have a 1000mbps connection, and only a 100mbps port, then you will only get 100mbps. ====Retest 2==== Perform the following steps: ===State Experiment=== David Schoefflers experiment on autp typed variables. http://lab46.corning-cc.edu/opus/spring2012/dschoeff/start#experiment_2 ===Resources=== Evaluate their resources and commentary. Answer the following questions: * Do you feel the given resources are adequate in providing sufficient background information? Yes, he provided the source page for the auto variable * Are there additional resources you've found that you can add to the resources list? yes, but they are unneeded because the actual source was provided. * Does the original experimenter appear to have obtained a necessary fundamental understanding of the concepts leading up to their stated experiment? yes * If you find a deviation in opinion, state why you think this might exist. ===Hypothesis=== State their experiment's hypothesis. Answer the following questions: *I believe you will not be able to declare the auto typed variable without initializing it. * Do you feel their hypothesis is adequate in capturing the essence of what they're trying to discover? yes * What improvements could you make to their hypothesis, if any? not that i can see ===Experiment=== Follow the steps given to recreate the original experiment. Answer the following questions: * Are the instructions correct in successfully achieving the results? yes * Is there room for improvement in the experiment instructions/description? What suggestions would you make? a little example of what compiler/compiler attributes would be nice * Would you make any alterations to the structure of the experiment to yield better results? What, and why? nope, the experiment is adequate to what needs to be tested. ===Data=== Publish the data you have gained from your performing of the experiment here. 1: #include 2: 3: using namespace std; 4: 5: int main() 6: { 7: auto autovar; 8: cout << "enter value to put in auto typed variable: " ; 9: cin >> autovar; 10: cout << "value stored in auto typed variable - > " << autovar << endl; 11: 12: return (0); 13: } I ran the same code and received the same errors in compiling lab46:~$ g++ --std=c++0x autotest.cc -o autotest autotest.cc: In function 'int main()': autotest.cc:7: error: declaration of 'auto autovar' has no initializer lab46:~$ ===Analysis=== Answer the following: * Does the data seem in-line with the published data from the original author? yes * Can you explain any deviations? none exist * How about any sources of error? in using the same exact code, there are no deviations or errors. * Is the stated hypothesis adequate? yes. ===Conclusions=== Answer the following: * What conclusions can you make based on performing the experiment? the auto typed variable is very powerful, but follows most of the same rules as other variables. * Do you feel the experiment was adequate in obtaining a further understanding of a concept? yes * Does the original author appear to have gotten some value out of performing the experiment? yes * Any suggestions or observations that could improve this particular process (in general, or specifically you, or specifically for the original author). The hypothesis was very direct, and the experiment was comprehensive, so i do not believe their are any suggestions to be made, other than maybe a little documentation along with the code, especially about the way it was compiled.