Using syntax highlight for blocks of code (bash and xml)

This commit is contained in:
Éder Ferreira Zulian
2015-05-26 14:39:23 +02:00
parent 76757e0025
commit 2ae1f82b69

View File

@@ -1,7 +1,7 @@
de.uni-kl.ems.dram.vp.system de.uni-kl.ems.dram.vp.system
============================ ============================
Generic DRAM controller simulator and debug tools related to it. Generic DRAM controller simulator and related tools.
## Basic Setup ## Basic Setup
@@ -9,19 +9,19 @@ In a terminal window execute the commands that follow.
Go to your home directory. Go to your home directory.
``` ``` bash
$ cd $ cd
``` ```
Create a directory for your projects. Create a directory for your projects.
``` ``` bash
$ mkdir projects $ mkdir projects
``` ```
Clone the repository. Clone the repository.
``` ``` bash
$ git clone --recursive https://<user>@git.rhrk.uni-kl.de/EIT-Wehn/dram.vp.system.git $ git clone --recursive https://<user>@git.rhrk.uni-kl.de/EIT-Wehn/dram.vp.system.git
``` ```
@@ -29,25 +29,25 @@ The *--recursive* flag tells git to initialize all submodules within the
repository. **DRAMPower** and **tinyxml** are examples third party repository. **DRAMPower** and **tinyxml** are examples third party
repositories that were embedded within the source tree as submodules. repositories that were embedded within the source tree as submodules.
It is possible to work with a **fork** of the official codebase. A fork is a It is possible to work with a copy of the official codebase. The copy is
copy of a repository. In that case, after pushing changes into your copy you called **fork**. In that case, after pushing changes into your fork you should
should create a **pull request** in order to your supervisor check and create a **pull request** in order to your supervisor check and possibly bring
possibly bring your changes to the official codebase. your changes to the official codebase.
``` ``` bash
$ git clone --recursive https://<user>@git.rhrk.uni-kl.de/<user>/dram.vp.system.git $ git clone --recursive https://<user>@git.rhrk.uni-kl.de/<user>/dram.vp.system.git
``` ```
After cloning go to the project directory. After cloning go to the project directory.
``` ``` bash
$ cd dram.vp.system $ cd dram.vp.system
``` ```
### With QTCreator ### With QTCreator
Execute the *QTCreator*. Execute the *QTCreator*.
``` ``` bash
$ qtcreator & $ qtcreator &
``` ```
@@ -62,13 +62,25 @@ Repeat the procedure above and build the trace analyser project.
**File -> Open Project -> dram.vp.sys/analyser/analyser/traceAnalizer.pro** **File -> Open Project -> dram.vp.sys/analyser/analyser/traceAnalizer.pro**
To speedup the building process one can use the additional **make** option
**-j[jobs]**. The command line below returns a good number to be passed to
make as the number of jobs that can run simultaneously to improve the building
time.
``` bash
$ cat /proc/cpuinfo | grep processor | wc -l
```
In the left bar go to **Projects -> Build & Run -> Build Steps -> Make**.
Click in **Details** then **Make arguments** and add **-j** followed by the
number you got.
### Without QTCreator ### Without QTCreator
In case you prefer a command line interface to the QTCreator GUI you can also In case you prefer a command line interface to the QTCreator GUI you can also
use **qmake** to generate a Makefile and then compile the project. use **qmake** to generate a Makefile and then compile the project.
``` ``` bash
$ cd dram $ cd dram
$ mkdir build $ mkdir build
$ cd build $ cd build
@@ -84,7 +96,7 @@ passed through the command line a default configuration file will be loaded.
The XML code below shows a typic configuration: The XML code below shows a typic configuration:
``` ``` xml
<simulation> <simulation>
<simconfig> <simconfig>
@@ -153,7 +165,7 @@ Below are listed the configuration sections and configuration fields.
The file [am_wideio.xml](dram/resources/configs/amconfigs/am_wideio.xml) is The file [am_wideio.xml](dram/resources/configs/amconfigs/am_wideio.xml) is
a good example. a good example.
``` ``` xml
<addressmapping> <addressmapping>
<channel from="27" to="28"/> <channel from="27" to="28"/>
<row from="14" to="26"/> <row from="14" to="26"/>
@@ -165,9 +177,7 @@ Below are listed the configuration sections and configuration fields.
![Address Mapping Sample 1](docs/images/am_sample1.png) ![Address Mapping Sample 1](docs/images/am_sample1.png)
![Address Mapping Sample 1 svg file](docs/images/am_sample1.svg) ``` xml
```
<addressmapping> <addressmapping>
<channel from="27" to="28"/> <channel from="27" to="28"/>
<column from="20" to="26"/> <column from="20" to="26"/>
@@ -179,19 +189,17 @@ Below are listed the configuration sections and configuration fields.
![Address Mapping Sample 2](docs/images/am_sample2.png) ![Address Mapping Sample 2](docs/images/am_sample2.png)
![Address Mapping Sample 2 svg file](docs/images/am_sample2.svg)
- **Memory Configuration** - **Memory Configuration**
The content of [fifo.xml](dram/resources/configs/memconfigs/fifo.xml) is The content of [fifo.xml](dram/resources/configs/memconfigs/fifo.xml) is
presented below as an example. presented below as an example.
``` ``` xml
<memconfig> <memconfig>
<BankwiseLogic value="0"/> <BankwiseLogic value="0"/>
<OpenPagePolicy value="1"/> <OpenPagePolicy value="1"/>
<MaxNrOfTransactions value="8"/> <MaxNrOfTransactions value="8"/>
<Scheduler value="FR_FCFS"/> <Scheduler value="FIFO_STRICT"/>
<Capsize value="5"/> <Capsize value="5"/>
<PowerDownMode value="TimeoutSREF"/> <PowerDownMode value="TimeoutSREF"/>
<PowerDownTimeout value="100"/> <PowerDownTimeout value="100"/>
@@ -203,7 +211,7 @@ Below are listed the configuration sections and configuration fields.
``` ```
- *BankwiseLogic* (boolean) - *BankwiseLogic* (boolean)
- "1": perform bankwise operations such as refresh and powerdown - "1": perform bankwise operations such as bankwise-refresh and bankwise-powerdown
- "0": do not perform bankwise operations - "0": do not perform bankwise operations
- *OpenPagePolicy* (boolean) - *OpenPagePolicy* (boolean)
- "1": use open page precharge policy - "1": use open page precharge policy
@@ -224,11 +232,11 @@ Below are listed the configuration sections and configuration fields.
- *Buswidth* (unsigned int) - *Buswidth* (unsigned int)
- Bus width in bits. - Bus width in bits.
- *ReadWriteGrouping* (boolean) - *ReadWriteGrouping* (boolean)
- "1": - "1": enable read writing grouping
- "0": - "0": disable read writing grouping
- *ReorderBuffer* (boolean) - *ReorderBuffer* (boolean)
- "1": - "1": use reordering buffer
- "0": - "0": do not use reordering buffer
- *ErrorChipSeed* (unsigned int) - *ErrorChipSeed* (unsigned int)
- Seed to initialize the random error generator. - Seed to initialize the random error generator.
- *ErrorCSVFile* (string) - *ErrorCSVFile* (string)
@@ -238,6 +246,9 @@ Below are listed the configuration sections and configuration fields.
- "Store": store data without error model - "Store": store data without error model
- "ErrorModel": store data with error model - "ErrorModel": store data with error model
[1]: http://google.com
[2]: http://google.com
- **Trace setups** - **Trace setups**
- *id* - *id*
- *clkMhz* - *clkMhz*
@@ -248,7 +259,7 @@ knowhow of memory technologies or some knowledge of the simulator source code.
Some resources of the simulator are available in the **resources** directory Some resources of the simulator are available in the **resources** directory
its sub-directories. its sub-directories.
``` ``` xml
$ cd /projects/dram.vp.system/dram/resources $ cd /projects/dram.vp.system/dram/resources
``` ```