1
0
mirror of https://github.com/myhdl/myhdl.git synced 2024-12-14 07:44:38 +08:00

2154 Commits

Author SHA1 Message Date
Dave Keeshan
7c6a5fda54
Raise traceSignals to DeprecationWarning from UserWarning (#401) 2022-12-24 10:48:13 +01:00
Josy Boelen
da9adf848a
Release 0.11.42 (#400) 2022-12-18 21:17:40 +01:00
Dave Keeshan
3775119f83
Clean PyPi release flow 17/12/2022 (#399)
* Move conditional so the whole job doesn't run unless it is a tag

* Add dist to make and restructure release

* Add message

* Add message

* Add message

* Add message

* Add message

* Add message

* Add message

* Add message

* Add message

* Add README to release to appear on PyPi

* Added read definition
2022-12-18 20:30:27 +01:00
Dave Keeshan
f8022d3dbd
Update makeflow (#396)
* Clean up verify convert warnings

* Rewrote test and remove Xfail, test is passing now (is it supposed to fail?)

* Rewrote test and remove Xfail, test is passing now (is it supposed to fail?)

* Fixed all tests to handle the analyze/verify deprecation

* Fixed to catch the correct error, List of signals as a port is not supported

* Add a way to search for and add myhdl.vpi

* Add explict test to check for deprecation case

* Change warning from UserWarning (which is the default) to DeprecationWarning

* Change test operation from script to makefile

* No longer use travis

* Add some ANSI colored logging

* Fixed test to look for DeprecationWarning

* Add lining step

* Add linting step

* Add linting step

* Remove matrix step

* Add work/ to clean list

* Hide echo commands in window

* The word test is reserved in pytest only for tests, doen't use it for any thing else, like blocks

* Add myhdl.vpi to clean

* Mark these tests as xfail, for now,

* Fix and unmark xfail 2 tests

* Add black support

* Remove python2 only testing

* Need to relook at this test, it performs differently for verilog and vhdl

* Add RTL files to the list

* Need to relook at this test, it performs differently for verilog and vhdl

* Upgrade to DeprecationWarnings

* Initial checkin with passing flow for new convert VHDL/Verilog, there are a few xfail tests that need to be debugged

* Add more examples for the Deprecation cases, toVHDL and toVerilog

* Fix deprecations catching

* Fix pytest to use pytest.ini

* Add pypi release steps

* Fix intbv error

* Fix indent

* Update to do a release

* Add checkout to step

* Update Python versions

* Add dependancy on tag on push
2022-12-17 13:21:08 +01:00
Dave Keeshan
b85c1668c1
Update flow to compile and used cached version of tools (#387) 2022-12-07 14:41:25 +01:00
Keerthan Jaic
d9054d3cb4
Merge pull request #383 from jtremesay/patch-1
Fix a typo in an error message - integeer -> integer
2022-11-16 05:23:28 +00:00
Jonathan Tremesaygues
504f46a7dd
Fix a typo in an error message
integeer -> integer
2022-11-15 20:22:26 +01:00
Keerthan Jaic
32c9c7abc1
add python 3.11 to ci matrix (#382) 2022-11-04 20:39:58 +01:00
Josy Boelen
279941b8b8
Added missing visit_NameConnstant() for Python versions 3.7 adn 3.8 (#380)
Modified test
2022-10-10 20:12:02 +02:00
Josy Boelen
79cf2218f4
Removed testing with Python 3.6 - EOL <> Added testing with PyPy 3.9 (#376)
* Removed testing with Python 3.6 - EOL
Added testing with PyPy 3.9

* corrected to 'pypy-3.9'
2022-08-02 17:40:09 +02:00
Josy Boelen
e6ac73214e
Conversion with recursive ShadowSignals (#359)
* _ShadowSignal.py: conversion:
  enabled taking a ShadowSignal of a ShadowSignal,
  reworked _setName() to aggregate chained slicing/indexing to a single slice or index
  marked the shadowed Signal as  always 'read'
_intbv.py: added the [n:] to __repr__
_toVHDL.py: added a comment

* added test for recursive/chained ShadowSignals

* added missing returned instance

* wrong startvalue

* Changed a docstring to launch GitHub actions on origin
2022-08-01 18:57:07 +02:00
tobygomersall
0477c7e042
[ENH] Updated the ConcatSignal conversion code to check for undriven … (#371)
* [ENH] Updated the ConcatSignal conversion code to check for undriven signals.

* [ENH] Added a test to check the undriven ConcatSignal converts sensibly.
2022-07-04 19:10:21 +02:00
Josy Boelen
ae25af4d59
Removed 'casez' in Verilog onehot / onecold state encoding (#357)
* Removed 'casez' in Verilog onehot / onecold state encoding
2022-05-24 08:21:46 +02:00
Josy Boelen
212b4b294e
removed error on reading back outputs of always_comb process (#368)
* removed error on reading back outputs of `always_comb` process

* Update _always_comb.py

* removed tests for SignalAsInout in AlwaysComb
2022-04-26 22:06:04 +02:00
Rafael Corsi
0247603e82
fix typo on structure doc (#365) 2022-04-26 17:51:15 +02:00
Rafael Corsi
cf8e4423a7
update mux2 example to python3 (print) (#363) 2022-04-26 17:50:38 +02:00
Dave Keeshan
1a4f5cd4e9
Setup github actions (#369)
* First working yml for github actions

* Remove redundant lines

* Test with building ghdl from source

* Re-enable all versions of python

* Re-enable all versions of python

* python-3.11 not available yet

* Add weekly cron on Sunday

Co-authored-by: Douglas Kastle <douglas.kastle@gmail.com>
2022-04-26 17:04:19 +02:00
Josy Boelen
cd869c149c #366 documenting _config-sim_ *tracebackup* attribute 2022-04-02 15:37:07 +02:00
Josy Boelen
c7662a056c
No more name mangling (#336)
* palce xfail on rename_after ... test

* Adding a commmnet to force commit

* alternate approach in testOBufInterface

* reverting _analyze.py
reaming the simulation objects

* typos

* final commit to 'finish' PR submission

* And of course I forgot the 'xfail'

* cleaning up wild import in test_tristate.py to provoke another Travis/CI run

* There is something wrong with the 'xfail' so I just commented out the offender

* uncommented the second test in test_tristate.py

* Changed the object names in the testbench, hoping to narrow down where it fails

* Changing more object names

* myhdl.c: added #ifdef _WIN32 clause to get the pipes working in WIndows 10, properly (auto-)formatted the source
util.py: changed the myhdl.vpi path to defaukt to iverilog's known system path
test_tristate.py: the TestTristate class re-used the tristate_obuf.o for the test with the interface; which put iverilog on the wrong foot ...

* util.py: make a distinction between Windows and Linux systems where to get myhdl.vpi
2022-03-10 13:59:43 +01:00
Keerthan Jaic
7b17942abb
Merge pull request #358 from josyb/Python3_9
Fixing issue #350
2021-03-18 22:35:03 +00:00
Keerthan Jaic
35d684ced2
Merge pull request #355 from hellow554/patch-3
replace yield_fixture decorator by fixture
2021-03-13 03:07:25 +00:00
Josy Boelen
55e7113311 cleared out remaining debug-print 2021-03-08 09:55:28 +01:00
Josy Boelen
65c456b680 Finally? 2021-03-07 14:13:30 +01:00
Josy Boelen
d01c4ee31b improving ast.Constant 2021-03-07 13:48:46 +01:00
Josy Boelen
19066e0656 restricted debugging to 3.9 only 2021-03-07 11:06:26 +01:00
Josy Boelen
48f7a5897c 3.9 serves a tuple 2021-03-07 10:53:12 +01:00
Josy Boelen
55e823e939 next re-write 2021-03-06 20:34:11 +01:00
Josy Boelen
fddbd06595 Merge branch 'Python3_9' of https://github.com/josyb/myhdl into Python3_9 2021-03-06 20:11:17 +01:00
Josy Boelen
989be768a4 and continuing 2021-03-06 20:07:55 +01:00
Josy Boelen
493a7e90d8 not giving up 2021-03-06 20:07:20 +01:00
Josy Boelen
97c9ed3d3b not giving up 2021-03-06 19:49:49 +01:00
Josy Boelen
d6e79678af reworked visit_Constant once more 2021-03-06 19:42:26 +01:00
Josy Boelen
d2812b277b a small typo : vist_Constant ... 2021-03-06 19:26:09 +01:00
Josy Boelen
5d63ac4a52 addded code to handle deprecated NameConstant values 2021-03-06 18:48:26 +01:00
Josy Boelen
3340aab567 added more Constant work
removed docstrings copied from 'formatted' text (from the Python doc web-page) as they contain 'hidden' character codes
2021-03-06 18:27:14 +01:00
Josy Boelen
1856b6e056 added 3.8 ast.Constant to handle deprecated ast.Num and ast.Str 2021-03-06 18:10:05 +01:00
Josy Boelen
71527b20be more experimenting with (simple) print() 2021-03-06 16:38:29 +01:00
Josy Boelen
853172b4b4 Merge branch 'Python3_9' of https://github.com/josyb/myhdl into Python3_9
# Conflicts:
#	myhdl/conversion/_analyze.py
2021-03-06 16:33:04 +01:00
Josy Boelen
eaee293ec4 experimenting (I abuse Travis CI as I don't have working test setup on my Windows PC) 2021-03-06 16:31:33 +01:00
Josy Boelen
754dc73aac experimenting (I abuse Travis CI as I don't have working test setup onn my Windows PC) 2021-03-06 16:19:46 +01:00
Josy Boelen
6341317a8b trying to decode the tuple served by the new ast.Index 2021-03-06 16:03:29 +01:00
Josy Boelen
2ba15adff9 added some info for <Object type is not supported in this context: enables, <class 'tuple'>> 2021-03-06 15:04:26 +01:00
Josy Boelen
fa933425db Fixing issue #350 ast.Index has changed in 3.9 (and will be removed in future versions) 2021-03-06 14:20:59 +01:00
Marcel Hellwig
bd1a953b57
replace yield_fixture decorator by fixture
https://docs.pytest.org/en/latest/yieldfixture.html

> Since pytest-3.0, fixtures using the normal fixture decorator can use a yield statement to provide fixture values and execute teardown code, exactly like yield_fixture in previous versions.
> 
> Marking functions as yield_fixture is still supported, but deprecated and should not be used in new code.
2021-01-25 09:34:37 +01:00
Christopher Felton
fc448b61f0
Merge pull request #353 from venks1/vi-352
Fix documentation links for Issue #352
2021-01-01 16:47:38 -06:00
Venkat Iyer
a4c56cecdc Fix documentation links for Issue #352 2021-01-01 14:31:18 -08:00
Christopher Felton
54055f2950
Merge pull request #345 from ThomasHornschuh/init_reset_fix
Init reset fix
2020-12-02 06:49:55 -06:00
Christopher Felton
e99c2c5fec
Updated travis to include Python 3.9 2020-12-01 13:56:22 -06:00
Thomas Hornschuh
98ad3c5127 Delete of accidentally added file 2020-09-09 16:05:01 +02:00
Thomas Hornschuh
c398ba8a79 Whitespace fix in _toVHDL.py
Removal of superflous args parameter in _verify.py
2020-09-09 16:00:07 +02:00