Académique Documents
Professionnel Documents
Culture Documents
1. Produce SystemC models of N-bit Adder and multiplier modules (N varies from 1
to 64 bits). The SystemC design should include basic modules, appropriate
testbenches for design validation and top-level modules. Use Modelsim or other tools
to simulate the models.
2. Using the N-bit adder and N-bit multiplier models, produce a model that carries
out (x + y)2, where x and y are 16-bit integer inputs. Use adders and multipliers
only. Assume precision such that overflow is accounted for. Use Modelsim or other
tools to simulate the model.
Produce a SystemC model of a data communication system, such as the one shown
below:
Page 1 of 6
iii) Receiver sends an acknowledgement on receipt of data packet. Note, no
acknowledgement is sent by the receiver if the received message has the
longest channel delay, which is 13 clock cycles.
CHANNEL ACKNOWLEDGEMENT
HINTS
Page 2 of 6
Here is a short example of a packet, showing packet data, id number and timing
information:
//packet.h
#include "systemc.h"
struct packet{
sc_uint<32> data;
sc_uint<12> id;
sc_time gen_time;
sc_time rec_time;
and then within any module, you could use sc_out <packet>, sc_in<packet> or
sc_fifo<packet> introduce simple packet based communication. In order to time
stamp the generation and reception time, use the following:
In transmitter:
….
sc_out<packet> outport;
packet pkt;
….
pkt.gen_time = sc_time_stamp();
….
outport.write(pkt);
In receiver:
….
packet pkt;
….
pkt.rec_time = sc_time_stamp();
….
Page 3 of 6
DELIVERABLES
You should submit a not-more-than 12-page report with codes, simulation results,
any block diagrams or waveforms that you may want to show and possibly a CDR
containing the codes. Commented and conventional coding styles are recommended.
MARKING
This module is assessed by 50% course work and 50%, 2-hour examination. This
assignment constitutes 25% of the total mark for the module. For information on
marking scheme, submission and feedback, see the end of the assignment. PLEASE
MAKE SURE YOU SUBMIT THE COURSE WORK INFORMATION (PAGES 4 and
5) AS PART OF YOUR REPORT TO RECEIVE TIMELY FEEDBACK.
Simplifying the understanding of the code, together with the correct codes,
testbenches and results will merit up to 70%-80% marks. But, additional marks will
be awarded if some of the following features are observed in the code
(a) Well thought out solution to the problem including original thinking and
possibly an "optimal" solution in terms of code length and testbench
generation
(b) Realistic and practical solution. Clear statements made about the
assumptions employed when developing the code.
(c) Note there are NO single solutions to the problems outlined in the
assignment, innovate and justify.
USEFUL INFORMATION
1. Black, D.C., Donovan, J., SystemC : from the Ground Up, Kluwer Academics,
2004.
2. Course Webpage (http://users.ecs.soton.ac.uk/ras06r/notes/elec6016)
Page 4 of 6
School of Electronics and Coursework (1 of 2)
Computer Science Instructions
Instructions
See Assignment
Submission
The submission deadline is strictly 4:30pm, Friday 20th March 2009, after which
the submissions would be considered late and usual late submission rules would
apply. Submission should be made both in paper and electronic form through ECS
Coursework handin System (CBASS).
Marking Scheme
Page 5 of 6
School of Electronics and Coursework (1of 2)
Computer Science Feedback
Marks Breakdown
Note that marks are provisional until the June exam board. Please retain all assignments and associated
paperwork until then.
Page 6 of 6