Commit graph

17 commits

Author SHA1 Message Date
Simon Southwell
5b23b59191 GIS-6905 Added ability to override the '_system' suffix expected in the QSYS filename using a command line option (-q or --qsysSuffix) 2018-06-26 11:40:01 +01:00
Simon Southwell
098e889b5a GIS-6905 Added option to auto-gen scripts to specify the build directory to use to find the QSYS file. 2018-06-01 10:53:59 +01:00
Simon Southwell
a14ff01e3d GIS-6846 Typo fix in closing down ffp file pointer 2018-03-12 09:25:55 +00:00
Simon Southwell
c09e1ee3c5 GIS-6846 Added gen_hal.py for generation of HAL code on top of the header data. Some small support added to gen_cpp.py and memMapperBase.py 2018-03-06 08:01:51 +00:00
Simon Southwell
9e8b66ab20 GIS-6846 For all scripts, added ability to specify a single JSON file to process using command line option. For text script, added a command line option to specify the first column's width. To HDL script (also with changes to base class) added support for a new rwp type which is much like wp, but also has a read strobe output. 2018-02-20 12:54:58 +00:00
Simon Southwell
3016588242 GIS-6846 In gen_cpp.py change reference to MemMapperBase class's protected method from MemMapperBase._<name> to self._<xxx> to stop PyCharm whinging. Functionally identical. 2018-02-09 14:20:21 +00:00
Simon Southwell
f13ea50f5b GIS-6846 updated c++ and text o/p scripts to not generate a file for registers if there won't ultimately be any (i.e. for sub-block JSON file only). 2018-02-02 12:07:34 +00:00
Simon Southwell
cc61986e3c GIS-6905 added support for selectively enabling output generation for a block, via the sub-block specifications. The default "process" is still "enabled" (i.e. enable generation), or a comma separated list of output to generate. Valid values are "hdl", "pkg", "cpp", "txt". For example, "cpp,txt" only generates the C++ headers and the text documentation. If a new type is required, then the base class does not need to change. The new script (for html o/p say), will pass in to the inherited 'run' method an enableTag argument (e.g. "htm"), and adding that tag to a "process" list will enable it selectively. 2018-01-26 10:11:45 +00:00
Simon Southwell
c4e33eaed2 GIS-6905 Added command line option (-s, -file_suffix) to allow specification of a suffix (e.g. _auto) to be added to the output filename(s). This is targetted at the HDL generation, but has been added to the base class and supported in all the scripts. 2018-01-22 08:11:51 +00:00
Simon Southwell
90af3e2e93 GIS-6846 Bug fix to gen_cpp.py. The command line o/p directory parameter not passed into to base class run method (thus default never overridden). 2018-01-18 08:40:45 +00:00
Simon Southwell
595528166f GIS-6846 CPP generation script updated to override o/p destination directory if specified, and correct naming when a sub-block instance name is empty 2018-01-18 08:27:15 +00:00
Simon Southwell
10977bf8fa GIS-6846 Added auto-generation of bit-field extraction functions for C/C++ script, plus support for the uniquifying tag of multiple instances of the same sub-block. 2018-01-16 07:51:02 +00:00
Simon Southwell
0c94d8d969 GIS-6905 memMapperBase.py no longer dependant on git package. gen_hdl.py now generates address decoding HDL for sub-blocks. gen_txt.py print the bitslices for the sub-fields as per Malcolm's request. Added further comments to gen_cpp.py 2018-01-09 14:05:28 +00:00
Simon Southwell
88b53684f0 GIS-6846 Modified CPP output script to output #defines, rather than constant definitions, after discussion with Malcolm (and Gordon). Also added CPP support for processing sub-blocks and generating offset definitions for these. An "instance" field is added to sub-blocks to uniquify multiple instantiations of blocks. This is a suffix string, which can be blank if known that no multiple instantiations will exist, else the string is free form (use or number of some suffix text). 2018-01-05 11:15:41 +00:00
Simon Southwell
966b682877 GIS-6905 Added ability to CPP generation to either word of byte address offset definitions, using command line switch (-B), as is already available for TXT generation 2017-12-22 11:08:41 +00:00
Simon Southwell
834598ac95 Added some sub-block support for sub-blocks not referenced from QSYS file, but instantiated in the hierarchy of the FPGA code. 2017-12-14 15:03:41 +00:00
Simon Southwell
29956ede8f Commit with all flavours of script compiling with good output for example. The HDL compiles in ModelSim, but is not yet checked. 2017-12-13 10:48:29 +00:00