Commit graph

57 commits

Author SHA1 Message Date
Simon Southwell
7afcd52bc8 Adding support for auto-generation of JSON make file dependencies 2020-07-23 11:03:10 +01:00
Simon Southwell
6e0c55a03b Added check in memMapperBase.py for missing address width specification 2020-07-20 06:50:20 +01:00
Simon Southwell
46d5bede02 Modified gen_ehal.py to use the buildDir from command line to override default 2020-02-12 06:35:23 +00:00
Simon Southwell
37d143665d Update to gen_htm.py to give notes in the type key for the new subtype field 2020-01-17 09:33:01 +00:00
Simon Southwell
29d6ab784d Added param to gen_htm.py to specify width of notes (if any present) 2020-01-02 14:53:04 +00:00
Simon Southwell
60602e1a2e Extended HTML auto-generation to add a subtype field from the JSON if it exists 2019-12-03 15:46:46 +00:00
Simon Southwell
c9039fac77 Upgraded gen_elhal.py to reference child HAL objects as derived classes (as opposed to the straight auto-generated base classes) on a command line switch (-D). This allows the construction of derived classes with higher level functionality added on top of the basic register and bit field accesses of the base class. When selected, derived classes will be needed for all the hierarchical class structure, whether adding functionality or not. The default behaviour is unchanged. 2019-10-04 08:33:33 +01:00
Simon Southwell
e02fa3b641 Added command line option to gen_html.py for selecting table width 2019-09-23 07:48:44 +01:00
Simon Southwell
c7c6b56a65 Updates to EL_HAL python scripts to cope with non-conforming FPM JSON 2019-07-01 07:33:23 +01:00
Damian Smith
9bb1a67cd3 ELGIP-21 Change default ver to 1.30000.0.0 in case of no buildstamp file found (i.e. default/local) 2018-11-20 16:40:21 +00:00
Simon Southwell
dc7106cf2b ELGIP-2 os.walk changed to follow symbolic links in memMapper.poy 2018-09-27 07:27:24 +01:00
Simon Southwell
706fb36473 Fixed issue with sequence bus entering registers for CSR bus 2018-09-24 10:19:28 +01:00
Simon Southwell
fe0f9dbd09 GIS-6905 corrected order issue in gen_hdl.py 2018-07-06 12:35:19 +01:00
Simon Southwell
8cab4244fb GIS-6905 Fix to gen_hal.py with missing passing of command line parameters 2018-06-26 13:34:14 +01:00
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
Damian Smith
b61c536de4 HMBFDGMA-2 scripts just weren't working before 2018-05-10 13:58:48 +01:00
Damian Smith
3f54e1459a HMBFDGMA-2 changes to scripting to use python 2018-05-04 19:07:01 +01:00
Damian Smith
8ae34777b8 HMBFDGMA-2 Starting switch to python - this will not actually synthesise now 2018-05-04 17:14:06 +01:00
Simon Southwell
951da0449b Merge branch 'master' of hydra:GIS_Embedded_Logic/fw_development_tools 2018-04-25 12:55:44 +01:00
Simon Southwell
7f6f6c4a82 GIS-6846 added support for hooking into to HDL simulation, and fixed bug on local reg address calculation 2018-04-25 12:54:57 +01:00
Simon Southwell
2e9e437c63 GIS-6846 gen_hdl.py bug fix on rwp field and read pulse output assignment name. 2018-04-19 15:59:00 +01:00
Simon Southwell
6e36af1a3c GIS-6846 For gen_html.py, extended HTTP link to look for https as well as http. 2018-04-19 14:06:00 +01:00
Simon Southwell
70140b9545 GIS-6846 Altered EL HAL structure to access memory via a pair of static methods (readReg and writeReg), allowing easy overwriting for different functionality, such as connection to an external system (e.g. a simulator). The external functionality remains unchanged. 2018-04-03 09:22:48 +01:00
Simon Southwell
84165846cd GIS-6846 Added script for generating HTML documentation (gen_htm.py) and updated gen_txt.py to handle "process_regs" attribute. 2018-03-22 09:43:49 +00:00
Simon Southwell
9cde88a8fa GIS-6846 Added attributes in MemMapperBase.py to define 'process' and 'process_regs' tags, and updated gen_hdl.py to use them. Adding new script gen_elhal.py and a mathcing template_elhal.h to generate test HAL code. 2018-03-20 09:15:53 +00:00
Simon Southwell
755e856080 GIS-6846 updated template.vhd to default the next_avs_readdata value to 0 2018-03-19 15:12:50 +00:00
Simon Southwell
a14ff01e3d GIS-6846 Typo fix in closing down ffp file pointer 2018-03-12 09:25:55 +00:00
Simon Southwell
f3dcccfbf9 GIS-6905 fixed assignment warnings for single bit bit-slices. E.g. (0 downto 0) becomes(0) 2018-03-08 14:42:46 +00:00
Simon Southwell
903390e303 GIS-6905 removed deprecated ieee library reference from template.vhd 2018-03-08 14:40:41 +00:00
Simon Southwell
b2e9ea04a4 GIS-6846 Added gen_json.py to generate an amalgamated JSON file as an auto-build artefact 2018-03-07 08:37:27 +00:00
Simon Southwell
68bb22b84f GIS-6846 Added gen_json.py to generate an amalgamated JSON file as an artifact of the build 2018-03-07 07:35:00 +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
70ba104ada GIS-6846 Bug fix for sub-block traversal beyond first level hierarchy. 2018-02-22 15:07:42 +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
504dadbf5f GIS-6905 Updated HDL package generation to add the sub-block offset definitions,. Also added to all package outputs integer versions of the address offsets for ease of use in test bench construction, without a plethora of conversion junk. 2018-01-19 13:48:58 +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
7e4f816ee2 GIS-6905 Added new command line option to specify an output destination directory and pass on to overloaded genOutput virtual function for use by the various generation scripts 2018-01-18 08:39:08 +00:00
Simon Southwell
5d815ac46e GIS-6905 HDL generation script updated to allow overriding of default output directory, support for mix of sub-block hierarchy and register definitions, and fix for w0 register/field of multi-bit width. 2018-01-18 08:37:14 +00:00
Simon Southwell
30c74e9d5b GIS-6905 Package generator script updated to allow overidding of default output destination directory, and fix on width if address hi/lo bits used in place of address width 2018-01-18 08:34:33 +00:00
Simon Southwell
099ab21622 GIS-6846 text documentation script updated to allow overriding of default output directory, and to allow mixed processing of sub-block and register definitions in JSON files 2018-01-18 08:32:44 +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
1f39cfb39c GIS-6905 Added update_fw_ver.py script to allow updating of the generic_versioning.json file with specified version numbers so that auto-generated HDL constants have this number when generated. 2018-01-16 15:35:55 +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
197cf54c48 GIS-6905 Template for sub-block address decoding auto-generated HDL added 2018-01-16 07:40:42 +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