473,413 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

Urgent ~~Simulator Question

Hi all,
Can anyone help me to do this Question. Coz this is my first time study C++
language and my lecture want me to do this kind of program, i really don't
have any ideal
pls help me

here is the Question::
Improve the following (badly written) matrix multiplicationprogram and
translate it into MIPs assembly language then assemble into machine language
(hexadecimal representation). You may use a compiler to produce an assembly
language file and SPIM to produce the final hexadecimal machine language but
it WILL be faster to compile the program manually given past experience by
students. It will also mean you need to implement less instructions in the
simulator, or put it another way, do LESS WORK.

#define n varies see belowtypedef char index_;typedef longint
matrix[n + 1][n + 1];main(){ index_ i, j, k; matrix a, b, c; for (j = 0;
j< n; j++) { for (i = 0; i< n; i++) { a[i][j] = i * j; b[i][j]
= a[i][j]; } } for (i = 0; i< n; i++) { for (k = 0; k< n; k++)
{ c[k][i] = 0.0; for (j = 0; j < n; j++) c[k][i] += a[k][j]
* b[j][i]; } }}
Write a simulator for the final version of the pipelined datapath from your
text book adding a 1-bit branch predictor and assuming two pipeline delays
for the data memory. The branch logic MUST remain in the ALU stage; do not
move it back to the register/decode stage. You MUST use branch flushing (do
NOT use branch delay slots), you MUST implement data forwarding and detect
and resolve load hazards.

Beware the text has a number of errors.

The simulator must display on screen the contents of pipeline and registers
being used and 8 memory locations commencing with one currently being
accessed. A simple text based display is acceptable as long as the screen
does not scroll every clock cycle! The simulator must also support single
step operation and be able to run until a particular instruction address is
reached. The simulator must read in the hexadecimal format machine
instructions. You may choose what language to use.

You are only required to implement the instructions used in the
multiplication program. For Assignment 1 use 16x16 matrices only. The Branch
Target Buffer must have only 1 entry only (to simplify the problem!).

~ Let us linux ~
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 22 '05 #1
9 2603
"Milk" <mi*********@yahoo.com> wrote...
Hi all,
Can anyone help me to do this Question. [...]


This is answered in the FAQ (http://www.parashift.com/c++-faq-lite/)
Enter "homework" into the search field.
Jul 22 '05 #2
"Milk" <mi*********@yahoo.com> wrote...
Hi all,
Can anyone help me to do this Question. [...]


This is answered in the FAQ (http://www.parashift.com/c++-faq-lite/)
Enter "homework" into the search field.
Jul 22 '05 #3
On 11 Apr 2004 00:50:16 +0800 in comp.lang.c++, "Milk"
<mi*********@yahoo.com> wrote,
Can anyone help me to do this Question. Coz this is my first time study C++
language and my lecture want me to do this kind of program, i really don't
have any ideal
"Don't have any idea" questions are often beyond the help that you can
expect from newsgroups. I think you should go talk to your instructor
about why his class is not working for you.
here is the Question::
Improve the following (badly written) matrix multiplicationprogram and
translate it into MIPs assembly language then assemble into machine language
Of course the assembly language part of that is not on topic here. Did
you have a question about the C++ part?
Write a simulator for the final version of the pipelined datapath from your
text book adding a 1-bit branch predictor and assuming two pipeline delays


That's a pretty large project; you should not expect to accomplish it
without spending some time on it. Your "Urgent" subject suggests that
you thought otherwise.

Jul 22 '05 #4
On 11 Apr 2004 00:50:16 +0800 in comp.lang.c++, "Milk"
<mi*********@yahoo.com> wrote,
Can anyone help me to do this Question. Coz this is my first time study C++
language and my lecture want me to do this kind of program, i really don't
have any ideal
"Don't have any idea" questions are often beyond the help that you can
expect from newsgroups. I think you should go talk to your instructor
about why his class is not working for you.
here is the Question::
Improve the following (badly written) matrix multiplicationprogram and
translate it into MIPs assembly language then assemble into machine language
Of course the assembly language part of that is not on topic here. Did
you have a question about the C++ part?
Write a simulator for the final version of the pipelined datapath from your
text book adding a 1-bit branch predictor and assuming two pipeline delays


That's a pretty large project; you should not expect to accomplish it
without spending some time on it. Your "Urgent" subject suggests that
you thought otherwise.

Jul 22 '05 #5
> [snip]

Your urgent request is important to us. Please stay on the newsgroup and a
representative will be with you as soon as possible.

The average wait time is...

THREE

....days.

<elevator music>
Jul 22 '05 #6
> [snip]

Your urgent request is important to us. Please stay on the newsgroup and a
representative will be with you as soon as possible.

The average wait time is...

THREE

....days.

<elevator music>
Jul 22 '05 #7
Hi, Victor Bazarov"
i really can't find it..coz a lot page so would u mind tell me which day and
year i need to looking for it?

"Milk" <mi*********@yahoo.com> ¼¶¼g©ó¶l¥ó·s»D:40******@lungfunggdn.org...
Hi all,
Can anyone help me to do this Question. Coz this is my first time study C++ language and my lecture want me to do this kind of program, i really don't
have any ideal
pls help me

here is the Question::
Improve the following (badly written) matrix multiplicationprogram and
translate it into MIPs assembly language then assemble into machine language (hexadecimal representation). You may use a compiler to produce an assembly language file and SPIM to produce the final hexadecimal machine language but it WILL be faster to compile the program manually given past experience by
students. It will also mean you need to implement less instructions in the
simulator, or put it another way, do LESS WORK.

#define n varies see belowtypedef char index_;typedef longint matrix[n + 1][n + 1];main(){ index_ i, j, k; matrix a, b, c; for (j = 0; j< n; j++) { for (i = 0; i< n; i++) { a[i][j] = i * j; b[i][j] = a[i][j]; } } for (i = 0; i< n; i++) { for (k = 0; k< n; k++)
{ c[k][i] = 0.0; for (j = 0; j < n; j++) c[k][i] += a[k][j] * b[j][i]; } }}
Write a simulator for the final version of the pipelined datapath from your text book adding a 1-bit branch predictor and assuming two pipeline delays
for the data memory. The branch logic MUST remain in the ALU stage; do not
move it back to the register/decode stage. You MUST use branch flushing (do NOT use branch delay slots), you MUST implement data forwarding and detect
and resolve load hazards.

Beware the text has a number of errors.

The simulator must display on screen the contents of pipeline and registers being used and 8 memory locations commencing with one currently being
accessed. A simple text based display is acceptable as long as the screen
does not scroll every clock cycle! The simulator must also support single
step operation and be able to run until a particular instruction address is reached. The simulator must read in the hexadecimal format machine
instructions. You may choose what language to use.

You are only required to implement the instructions used in the
multiplication program. For Assignment 1 use 16x16 matrices only. The Branch Target Buffer must have only 1 entry only (to simplify the problem!).

~ Let us linux ~

~ Let us linux ~
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 22 '05 #8
Hi, Victor Bazarov"
i really can't find it..coz a lot page so would u mind tell me which day and
year i need to looking for it?

"Milk" <mi*********@yahoo.com> ¼¶¼g©ó¶l¥ó·s»D:40******@lungfunggdn.org...
Hi all,
Can anyone help me to do this Question. Coz this is my first time study C++ language and my lecture want me to do this kind of program, i really don't
have any ideal
pls help me

here is the Question::
Improve the following (badly written) matrix multiplicationprogram and
translate it into MIPs assembly language then assemble into machine language (hexadecimal representation). You may use a compiler to produce an assembly language file and SPIM to produce the final hexadecimal machine language but it WILL be faster to compile the program manually given past experience by
students. It will also mean you need to implement less instructions in the
simulator, or put it another way, do LESS WORK.

#define n varies see belowtypedef char index_;typedef longint matrix[n + 1][n + 1];main(){ index_ i, j, k; matrix a, b, c; for (j = 0; j< n; j++) { for (i = 0; i< n; i++) { a[i][j] = i * j; b[i][j] = a[i][j]; } } for (i = 0; i< n; i++) { for (k = 0; k< n; k++)
{ c[k][i] = 0.0; for (j = 0; j < n; j++) c[k][i] += a[k][j] * b[j][i]; } }}
Write a simulator for the final version of the pipelined datapath from your text book adding a 1-bit branch predictor and assuming two pipeline delays
for the data memory. The branch logic MUST remain in the ALU stage; do not
move it back to the register/decode stage. You MUST use branch flushing (do NOT use branch delay slots), you MUST implement data forwarding and detect
and resolve load hazards.

Beware the text has a number of errors.

The simulator must display on screen the contents of pipeline and registers being used and 8 memory locations commencing with one currently being
accessed. A simple text based display is acceptable as long as the screen
does not scroll every clock cycle! The simulator must also support single
step operation and be able to run until a particular instruction address is reached. The simulator must read in the hexadecimal format machine
instructions. You may choose what language to use.

You are only required to implement the instructions used in the
multiplication program. For Assignment 1 use 16x16 matrices only. The Branch Target Buffer must have only 1 entry only (to simplify the problem!).

~ Let us linux ~

~ Let us linux ~
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 22 '05 #9
"Milk" <mi*********@hotmail.com> wrote...
Hi, Victor Bazarov"
i really can't find it..coz a lot page so would u mind tell me which day and year i need to looking for it?


i have no ideal what you wrote.
Jul 22 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Alex Vinokur | last post by:
C++ Simulator of a Universal Turing Machine can be downloaded at : * http://alexvn.freeservers.com/s1/utm.html * http://sourceforge.net/projects/turing-machine/ The program simulates a...
1
by: Milk | last post by:
Hi all, Can anyone help me to do this Question. Coz this is my first time study C++ language and my lecture want me to do this kind of program, i really don't have any ideal, or can send me some...
9
by: Milk | last post by:
Hi all, Can anyone help me to do this Question. Coz this is my first time study C++ language and my lecture want me to do this kind of program, i really don't have any ideal pls help me here...
61
by: /* frank */ | last post by:
I have to do a homework: make a CPU simulator using C language. I have a set of asm instructions so I have to write a program that should: - load .asm file - view .asm file - do a step by step...
0
by: SatishPasala | last post by:
Hi I am developing a Windows Mobile application. I want Visual Studio to use Palm Simulator to display the application. Now it is pointing to Default Simulator. I downloaded the Palm...
0
by: François | last post by:
Hi, My current job is to develop VoiceXML dialogs. The voice platform that we use provides neither a debugger nor a simulator, and each time I want to test a new dialog, I have to upload it on...
0
by: Killingkids | last post by:
hello, everyone...im facing a big problem in my final year project, hope that u all can help me solve the problem ... i was doing a mobile web application which enable student to check the college...
0
by: Killingkids | last post by:
hello, everyone...im facing a big problem in my final year project, hope that u all can help me solve the problem ... i was doing a mobile web application which enable student to check the college...
3
by: DanielJohnson | last post by:
I was wondering if anyblody can suggest me a network simulator written in python in which I can add on my own code and extend its functionality. I am looking for a simulator which will simualte...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.