Professional Documents
Culture Documents
1
2 MORENO ET AL.
allocation page size, page size in virtual memory, testing the successive versions of the simulator, docu-
line size in cache memory, write allocate/non menting its use through tutorials and help files, detecting
write allocate, TLB size, mapping functions, etc. possible bugs, proposing new features/machines to be
*
Memory hierarchy teaching process should included, etc. These iterative activities will allow students
include every characteristic existing in actual to get a deeper knowledge of the subject in a social
machines: cache levels, page table implementa- constructivist way, since they are encouraged to share
tions, eviction algorithms, etc. their impressions and work together. In this way, several
*
It would be desirable, even more in a nearly principles identified by Chickering and Gamson [9] for
Design-based Research (DBR) approach, to good practice in undergraduate education are reached. It
make experiments on the hardware. Neverthe- is important to remark that the students have not written
less, due to technical limitations, experiments are any code for the simulator, since it is not the goal of the
often executed in a relatively old processor, with process. For these activities, Moodle platform has been
a simple cache organization, damaging the used as a collaboration framework among the students
learning process extensibility. In addition to this, and teachers.
concerning the other alternative, existing simu- This refinement process has been carried out for
lators, especially trace-driven oriented ones, are 2 years, obtaining a complete version of MNEME,
often too simple and show how caches work in detailed below. Nevertheless, the authors have
an isolated way. In contrast, execution-driven observed the benefits of this student participation
simulators are usually too complicated and and decided to repeat it as a learning procedure. For
without a friendly interface, becoming inappro- this purpose, the students will work in this phase with
priate for undergraduate students [3 5]. Regard- incomplete/old versions of the simulator and/or
ing to this, a survey of simulators can be found in including some novelties, such a new commercial
Ref. [6]. machine configuration.
This paper presents the mentioned simulator for
Keeping these statements in mind, the authors memory hierarchy topics in a Computer Architecture
have proposed a learning scheduling based on the course. The remainder of this paper is organized as
design and implementation of a simulator. This follows. Description of MNEME and Procedures for
simulator, called MNEME [7,8], reflects those state- Using it as a Learning Resource Section describes
ments and takes advantage from the flexibility of the MNEME features and its use as a learning resource.
software. Some complementary activities are related in Other
The debate about simple or complex simulators is Activities in the Course Section. The feedback of
out of the scope of this paper. Nevertheless, the students obtained in the validation phase is reported in
authors will state that a simulator should not carry out Evaluation and Feedback From the Students Section.
an excessive simplification in order to make it simple. Finally some conclusions are offered.
In other words, developers should not oversimplify
their design because doing this, they could lead to new
DESCRIPTION OF MNEME AND
misconceptions. In contrast, if the real context is
PROCEDURES FOR USING IT AS
complex itself (i.e., with many parameters and many
A LEARNING RESOURCE
concepts to be monitored for a pedagogical pursue),
the simulator needs to be complex. In this last case,
Description of the MNEME Simulator
implementers must include some kind of mechanism
in order to make the simulator useful from a MNEME is a multiplatform simulation tool developed
pedagogical point of view. Thus, MNEME will result in Java Swing as an Applet, so it can be run in any
in a complex simulator, and this is its main strength: Internet browser window. This fact does not mean that
its complexity will cover a wide and complete range the simulator can not be run locally, since MNEME can
of architectures and examples. be downloaded free of charge and the users can access
Although the simulator is valuable tool in and of its features by opening a HTML file, called sj.html.
itself (as example, when it is used in laboratory Due to the complexity of the field to model,
procedures), the proposed method has taken pedagogical MNEME results in a complex simulator. The main
aspects from the design phase. For this phase, researchers features of MNEME can be summarized as follows:
have been assumed the roles of teacher and observer of
the process. The students (from different degrees and multithread,
subjects) were asked to take part actively in this process, hyperpaging
looking for information in technical papers and journals, direct and reverse mapping,
MNEME 3
accessed is expressed in hexadecimal format. This memory address. In Figure 2, the cells contain a 1
address, composed by 8 digits, is not shown directly in value. This configuration means that the system is in
the simulator. The address is divided into three its initial status, that is, no data have been loaded yet
fragments: the first 5 digits (20 bits), the next 2 digits in the different memory levels.
(8 bits) and the last digit (4 bits). The first fragment is In the heading of each memory level, it
translated to decimal format and assigned to the text can be observed a button with the information
field ‘‘VPN’’ in the pageTable tab. The other fragments symbol. When these buttons are pressed, a window
are assigned to the cache level fields in the findPages containing information about its corresponding con-
tab. The mentioned tabs are described below. figuration details are shown by the simulator, as in
Figure 3.
Simulation. Once the two files have been loaded, In the top of each table, the address being
simulation starts. MNEME offers a set of tabs where a accessed is shown (in both decimal and hexadecimal
complete list of parameters can be visualized by the format). In addition of this, the instruction being
students. Before describing each tab, it is important to processed is shown in the bottom left-hand corner and
remark that MNEME provides a color code that allows the user can chose the simulation control from four
the user to detect in an easy and visual way every effect buttons in the tab (play, stop, pause, and step) and a
on the code trace. For each event, the color of implied bar that defines the speed of the simulation.
code lines will change. Before an object is removed
(e.g., when a page is replaced in the main memory and PageTable Tab. In this tab, MNEME shows the
thus the page does not need to be referenced any more different memories that take part in the table pages. In
in the TLB) or replaced, there is a delay (about 2 s) that Figure 4, concerning to an indirect mapping, they can
allows the user to follow the changes properly. be observed the main memory TLB and the indirect
mapping table. In the case of a direct mapping, the
findPages Tab. In the findPages tab, MNEME offers simulator shows the tree of information tables for the
in a visual way, the actual status of the diverse mapping and the information concerning the virtual
memories of the configured machine. In Figure 2, they address.
can be observed three cache levels and the main
memory. Data are represented by tables, where each Bp Tab. This tab (shown in Fig. 5) includes
column is an attribute (number of inputs i, KEY, pid of information about the structure of the system. It also
the referred process, etc.) and each file represent a represents the actions to be carried out in each step.
of the studied concepts. Moreover, students of ware evaluation, simulators use and programming
successive years will make use of these documents procedures) were asked to carry out a collaborative-
by correcting their weaknesses and profiting from type validation and to fill a questionnaire about
their valuable contents. MNEME and how the simulator helped them in the
subject. This questionnaire basically focused on three
main aspects:
Wiki Analysis
(1) The suitability of the simulator for the educa-
The teachers point out common points and differences
tional requirements of the students.
among the analyzed machines. Additionally they
(2) The features and functionality of the software.
mediate in several discussions about these topics. In
(3) The technical aspects of the simulator, such as
this way analysis, thoughts and learning about
malfunctions or bugs.
possible mistakes or misconceptions are achieved.
As result of the feedback process, some state-
ments can be reported
Final Evaluation
This mixed evaluation method includes observation, 100% of the students have tested MNEME for
automatic registration, interview, individual test, 3 6 h before answering the questionnaire.
teacher notebook, etc. The following methods are 90% of the students did not know if there was
used in this task: any similar software for memory hierarchy
simulation.
quantitative Methods (individual tests, auto- 90% of the students agree that MNEME helps to
matic registers in Moodle), understand the subject topics better.
qualitative Methods (observations, inter- 70% of the students believe that MNEME keeps
views), their interest.
social Networks (observation of face to face Nevertheless, students also confirm that it is
relations, interactions in Moodle). necessary to make some improvements in the
MNEME environment, since every interviewed
As can be observed from this methodological student pointed out that the architecture in
approach, the role of MNEME as learning mediator is MNEME is not easy to follow.
essential in order to improve an educational experi- 90% of the students points out that the help
ence that covers all memory hierarchy processor files are clear and concise. It is clear from
concepts. the fact of that students themselves took
part in the redaction of MNEME help files.
A similar percentage agrees that MNEME
EVALUATION AND FEEDBACK FROM is highly flexible in order to design new
THE STUDENTS procedures.
Concerning to the technical aspects of the
Feedback from students is a crucial piece of simulator, such as malfunctions or bugs, all of
information in order to verify the usefulness of the the students agree that MNEME works fine and
proposed exercises [9]. Some weaknesses and poten- it can be perfectly run in different operating
tial improvements of the simulator and the method- systems.
ology can also be identified in this way. As stated
above, a first approach to this feedback was carried Apart from these data from the questionnaires,
out in the design of the simulator, since a group of students and teachers held a meeting, discussing
students took part significantly in this design, cooperatively about how to improve the simulator. In
proposing some improvements that were included in this sense, students proposed several ideas, such as the
the final version of MNEME. These improvements design of a tutorial with an assistant that introduce
were especially focused on the usability of the users the features of the simulator.
simulator, due to the inherent complexity of the As a complement to the commented validation
system to model. tasks, the simulator was presented in a domestic
Apart from this first feedback phase, several educational conference [9] and more opinions and
students from a Computer Architecture course in suggestions were collected from several users that
Computer Science degree (with experience in soft- tested the simulator.
8 MORENO ET AL.
Finally, from the authors’ point of view, the use of are being added to the simulator. These features
MNEME helped the students to better understand the will allow making valuable statistics about the
memory hierarchy theoretical concepts. However, the utility of tool, for example, comparison of test scores
most remarkable results were related to the student- (on the same topic) with and without the use of
teacher interaction. The students showed a higher MNEME.
level of motivation, which was reflected in a
significant increase in class participation and general
interest in the subject.
REFERENCES
BIOGRAPHIES
Lorenzo Moreno received his MS and PhD Jonay Toledo received his degree in Com-
degrees from the Universidad Complutense puter Science Engineering in 2001 and his
de Madrid, Spain, in 1973 and 1977, degree in Electronics Engineering in 2002
respectively. From 1977 to 1979 he was an from the University of La Laguna, Tenerife,
associate professor in the Department of Spain. From 2002 to 2008 he has been a
Computer and Control Engineering, Univer- Researcher at the Department of Systems
sidad del Paı́s Vasco, Spain. From 1979 to Engineering and Automation of the Univer-
1988 he was an associate professor in the sity of La Laguna, where he is currently an
Department of Computer Science, University associate professor. He received his PhD in
Autónoma de Barcelona, Spain. Since 1989 2008 from the University of La Laguna,
he is a full professor in the University of La Laguna, Tenerife, Spain. Tenerife, Spain. His two main research fields are robotics and
His areas of interest include computer architecture and computer control systems.
education.
Jesús Torres was born in S/C de Tenerife,
Evelio J. González received the MS degree Spain. He received his degree in Electronics
in Applied Physics in 1998 and his PhD Engineering in 2001 from the University of
degree in Computer Science in 2004 from the La Laguna, Tenerife Spain. From 2001 to
University of La Laguna, Tenerife, Spain. 2008 he has been a researcher at Department
From 1998 to 2001, he was a Research of Systems Engineering and Control and
Student in the Department of Applied Computer Architecture in the University of
Physics, Electronics and Systems at the same La Laguna, where he is currently an
university. Currently, he works as assistant associate professor. He worked in autono-
professor in the University of La Laguna. His mous robot heading and position localization
areas of interest include Simulation, Digital systems and in artificial hearing to develop sensorial substitution
Control, Computer Architecture, Artificial Intelligence and Intelli- devices for deaf. But currently his main research field is the
gent Agents. computer vision applied to pose and gesture recognition.
Beatrice Popescu was born in Targoviste, Carina Gonzalez got her PhD (Cum Laude)
Romania. She received her degree in Com- in computer science from the University of
puter Science in 2004 from the University of La Laguna (ULL), Spain, in 2001. Currently
Bucuresti, Romania. From 2004 to 2005 she she teaches in the Department of Systems
worked as a programmer at GZK Software, Engineering and Control and Computer
Bucuresti, Romania. Since 2006 she has a Architecture of ULL. Her main focus area
scholarship in the University of La Laguna, in research is the application of AI and
Spain. multimedia adaptive interfaces in education.
She is also director of the Center of Virtual
Learning at ULL, member of EDULAB
(Laboratory of Education and New Technologies) and member of
IEEE and of the Spanish Chapter of the IEEE Education Society,
Association of Human-Computer Interaction of Spain, and Distance
Education Net, among others.
10 MORENO ET AL.