diff options
author | Alex AUVOLAT <alex.auvolat@ens.fr> | 2013-11-12 15:35:59 +0100 |
---|---|---|
committer | Alex AUVOLAT <alex.auvolat@ens.fr> | 2013-11-12 15:35:59 +0100 |
commit | f4deea25fd83783c087d7b5023b68bc27f30476f (patch) | |
tree | 118c1a5c497e0767fbb6841c9775e6af8f61f34a /README | |
parent | aedf3b34986ba96c08a2f8d480b10775b021f21f (diff) | |
download | SystDigit-Projet-f4deea25fd83783c087d7b5023b68bc27f30476f.tar.gz SystDigit-Projet-f4deea25fd83783c087d7b5023b68bc27f30476f.zip |
(nothing interesting)
Diffstat (limited to 'README')
-rw-r--r-- | README | 28 |
1 files changed, 21 insertions, 7 deletions
@@ -16,7 +16,7 @@ sched/ Output : a netlist with topologically sorted operators plus a dumbed-down version for input to the C circuit simulator This program is also capable of a few optimisation (usually reduces netlist - size by 1/4). + size by 1/4 or 1/3). $ cd sched/ $ ocamlbuild main.byte @@ -25,7 +25,7 @@ csim/ This program does NOT do the scheduling. This program does NOT read a netlist, it reads a specifically formatted dumbed-down netlist, that is output by the scheduler. - $ cd csim + $ cd csim/ $ make camlsim/ @@ -39,6 +39,9 @@ camlsim/ minijazz/ The MiniJazz compiler (given by the teachers). +tests/ + Various test files. + *.pdf Documentation about the project. @@ -85,6 +88,8 @@ The right shift is also inverted. The dumbed-down netlist format (OLD FORMAT) ------------------------------------------- +This is the description of the old format, not used anymore. + The C simulator does NOT read a properly formatted netlist, but only a file representing it written in a simple format, that can be parsed with only calls to `scanf`. The file is organized as follows : @@ -145,6 +150,8 @@ whatever - anyway, no need to recalculate them at every iteration). The dumbed-down netlist format (NEW FORMAT) ------------------------------------------- +This is the description of the format currently used by the C simulator. + <var count> [for each variable] <var size> <var name> @@ -208,17 +215,24 @@ How ROMs are handled -------------------- The MiniJazz language has many flaws, and one is the impossibility to specify -what is to be loaded in a ROM. One possibility (not implemented yet) would be -that each ROM-type equation uses data from a file which is found by looking at -the name of the variable that is read from the ROM. For example, if we have : +what is to be loaded in a ROM (it can be specified in the .mj file, but it won't +appear in the generated .net file). + +To know what file to load in a ROM chip, we recognize a certain prefix in the +name of the variable holding the ROM. For example, if we have in a netlist the +following line : + decode7_128 = ROM 4 7 _l_42_122 + which is a possible output for the MiniJazz compiler, and if the simulator is provided with the command-line argument : + -rom decode7 path/to/decode7.rom + then the simulator will detect the prefix `decode7` in the variable name -decode7_128, and use the ROM from the file specified on the command line. +decode7_128, and use the ROM data from the file specified on the command line. -Suggested format for the ROM files : +The format of a ROM file is as follows : <address width> <word size> <data> |