URL
https://opencores.org/ocsvn/light52/light52/trunk
[/] [light52/] [trunk/] [test/] [hello_c/] [readme.txt] - Blame information for rev 5
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
3 |
ja_rd |
Hello_c -- This is your typical 'Hello World!' in C.
|
2 |
|
|
|
3 |
|
|
This demo will just print a welcome message to the serial port (19200/8/N/1).
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
In order to make this demo, you need the free C compiler SDCC and some flavor
|
7 |
|
|
of 'make'.
|
8 |
|
|
|
9 |
|
|
Running 'make all' will compile the demo and build a suitable object
|
10 |
|
|
code VHDL package that can then be used in synthesis or simulation.
|
11 |
|
|
See the makefile for other make targets ('clean', etc.).
|
12 |
|
|
|
13 |
|
|
You can run this demo on the software simulator B51 by running script 'run.bat'.
|
14 |
|
|
You can run this demo in Modelsim by modifyng script /sim/light52_hello_tb.do
|
15 |
|
|
slightly -- compile the object code package for this demo.
|
16 |
|
|
|
17 |
|
|
Once you have run the demo in Modelsim and B51, you can then compare the
|
18 |
|
|
respective simulation logs (sw_log.txt and /sim/hw_sim_log.txt). For this demo,
|
19 |
|
|
both files might not be identical because the B51 simulator is not cycle
|
20 |
|
|
accurate in its simulation of the serial port.
|
21 |
|
|
|
22 |
|
|
It should be easy to port the BAT scripts to any linux shell flavor.
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.