1
0
mirror of https://github.com/myhdl/myhdl.git synced 2025-01-24 21:52:56 +08:00

20 Commits

Author SHA1 Message Date
Josy Boelen
a9d65c0f87
Class based design (#447)
* 1) added J. Villars code from PR#238 (https://github.com/myhdl/myhdl/pull/328)  to augment the `@block` decorator with arguments, initially to keep the generated names simpler especially when nesting `block`s without adding *hdl* code - I modified it a bit using `skipname=False` rather than `keepname=True` as default
2) added _hdlclass.py to support Class Based Design, look at bot test/conversion/general/test_hdlclass.py and test/conversion/general/test_hdlclass2.py
This needed the changes of 1) above.

* 1) _Signal.py
added property `.nbits` for use in HDL iso `len(sig)`, anticipating Structure and Array where `len()` is not what `.nbits` will give you ...
added `duplicate(value=None)` method to avoid that ugly `newsig = Signal(oldsig._val)`
2) _block.py
minor changes
3)_hdlclass.py
removed ForwardPorts resolution as this currently adds a *stray* sig in the .vcd output - even if noe ForwardPorts are present
cleaned the code to what is actually working
4) _traceSignals.py
The `@block(skipname=True), which is heavily used in Class Based Design, applies `None` as that block-name and this will show up as an additional level in the .vcd which looks ugly and distracting.
So reworked this file to skip adding the None-level
Also added indents in the .vcd var section, primarily for debugging, but kept this as it looks nice.
Introduce f'strings
5) _analyze.py
changed UPPER_CASE naming of processe/always into lower case, making the generated signals conform with the producing process/always
6) test_xxxx.py
changed @instance with *logic* as function name into *comb* as `logic` has become a reserved Verilog keyword

* cleaned test/bugs
replacing generator names *logic* and *output* with *comb* as `logic` and `output` have become Verilog reserved keywords

* replacing more occurrences of *logic* by either *comb* or *synch*

* one *comb* too many :(

* added small test_hdlclass0.py to help in debugging
updated the 'doc' section -- needs publishing
added direct conversion of Class Based Design modules - resulting in lesss boiler-plate code
2024-12-21 17:21:11 +01:00
Hugo
fc89694a11 The future is now 2019-03-12 18:34:14 +02:00
Keerthan Jaic
f838b241c1 move dep installs to travis.yml
also fix ghdl installation
2018-08-20 00:55:28 -07:00
Jan Decaluwe
20e67ff6e5 devil in detailsss 2018-02-21 22:21:01 +01:00
Jan Decaluwe
ab8c802aa1 try another fix 2018-02-21 22:07:51 +01:00
Jan Decaluwe
5abf86d329 try to fix ghdl path for travis 2018-02-21 21:34:04 +01:00
Keerthan Jaic
71f5ff1490 travis: move simulator installation to before_script 2016-10-24 23:44:15 -04:00
Keerthan Jaic
f803c1fd8b travis: install simulator only when needed 2016-10-24 23:38:51 -04:00
Keerthan Jaic
f54ff1a28a travis: install ghdl only if CI_TARGET is ghdl 2016-10-24 23:37:37 -04:00
Jan Decaluwe
3b5ad3b471 pypystats 2016-05-10 14:09:01 +02:00
Jan Decaluwe
842d9d4fd8 Benchmark updates for pypy 4.0.1 2016-04-25 13:26:44 +02:00
Jan Decaluwe
dad02d8e60 Use module decorator in qualified way 2016-03-10 20:27:07 +01:00
Jan Decaluwe
bb2882a6d0 Actually select the binary distro for Ubuntu 12.04 2016-03-01 19:43:15 +01:00
Jan Decaluwe
b81450ead2 typo 2016-03-01 18:02:21 +01:00
Jan Decaluwe
8aa54b797f script execution mode 2016-03-01 17:59:28 +01:00
Jan Decaluwe
e1e9ada5e8 Try ghdl 0.33 in travis 2016-03-01 17:25:23 +01:00
Keerthan Jaic
dedc1ae3e0 rename icarus to iverilog, GHDL to ghdl
This matches the name of the corresponding simulator's binary.
py.test can use this to verify is a simulator is installed before
running conversion tests
2015-07-18 13:48:16 -04:00
Keerthan Jaic
cdf2b1aa68 move perf_inferwaiter to benchmarks dir 2015-06-24 11:20:10 -04:00
Keerthan Jaic
fcf450dcaa move ci.sh to scripts folder 2015-04-27 16:09:24 -04:00
Keerthan Jaic
905cc11298 move benchmarks to scripts folder 2015-04-27 16:09:24 -04:00