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

2148 Commits

Author SHA1 Message Date
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
Thomas Hornschuh
7bbb3f42d6 Fix Verfication environment and add test coverage for reset values
Fixes in _verify.py:
- change VHDL run command to work with mcode backend and supress metavlue warnings
- added missing args/kwargs parameter passing in VerficationClass

Testcases:
Additional test init_reset_tb  in conversion/general/test_initial_values.py to verify correct assisgnment of init values
in @always_seq processes with a reset
2020-08-10 20:53:49 +02:00
Thomas Hornschuh
8531712382 Fix for reseit values
adds missing parantheses around a binary literal:
e.g.:
unsigned'("11000000000000000000000000000000");
2020-08-10 20:42:23 +02:00
Keerthan Jaic
a4708fac7f
Merge pull request #333 from jck/py38
travis: start testing on Python 3.8 too
2020-06-13 00:04:38 +01:00
Christopher Felton
1a47ea3f86
Merge pull request #337 from raczben/master
add more docs details to instances()
2020-06-04 16:48:04 -05:00
Benedek Racz
2ddbfcd059
add more docs details to instances() 2020-04-12 23:23:02 +02:00
Keerthan Jaic
f93e016f7f
Merge pull request #307 from hugovk/rm-2
Drop support for Python 2
2020-04-10 22:53:25 +01:00