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

970 Commits

Author SHA1 Message Date
Jan Decaluwe
2b91828d37 Verilog print support for enum types 2008-09-20 15:44:34 +02:00
Jan Decaluwe
5f3b1aa469 Make enum type implementation more explicit 2008-09-19 20:38:07 +02:00
Jan Decaluwe
43f69f1e80 Proper support for converting multiple print arguments 2008-09-16 21:30:42 +02:00
Jan Decaluwe
a2ba8f2a30 Code for signal tracing and conversion now assumes decorator usage.
From now on, all such code should always use decorators for blocks
that are part of the structure of the design. This makes the
purpose of the code clearer and allows simplifications and useful
assumptions for the MyHDL implementation.
Conversion support for other kind of generators has been removed.
The 'instances' function now only returns blocks that are
constructed using decorators at their leaf cells.
2008-09-15 16:47:15 +02:00
Jan Decaluwe
27ad2f5fa8 Some code clean up, moved _isGenSeq function 2008-09-14 09:10:36 +02:00
Jan Decaluwe
1accf14232 Refactored always block header and sensitivity list writing 2008-09-12 14:43:59 +02:00
Jan Decaluwe
4a8436745c Support for list of signals in sensitivity lists of general @instance blocks 2008-09-10 23:04:33 +02:00
Jan Decaluwe
ebb99727b6 Added list of signal test for general @instance block 2008-09-10 20:11:15 +02:00
Jan Decaluwe
65b3295cb4 Support for list of signals in the sensitivity list of simple @instance blocks. 2008-09-10 17:26:59 +02:00
Jan Decaluwe
8e8550c801 Add lists of signals to the inferred sensitivity list in an always_comb 2008-09-09 20:47:11 +02:00
Jan Decaluwe
7a2b3f2089 Support wire memories, to use in assign statemtent.
Seems like cver doesn't support this, but Icarus does. Apparently
a Verilog 2001 feature.
2008-09-09 16:08:21 +02:00
Jan Decaluwe
0959d892ea Removed decl attribute from memories 2008-09-08 17:26:53 +02:00
Jan Decaluwe
df3eb0256c Relax conversion constraints on list of signals.
Previously you couldn't use list syntax in a generator if plain
signal syntax was used for the corresponding signal in another
generator. Now list syntax gets priority if used in some generator.
In the converted output, list (memory) syntax will be used for
such signals.
Everything that worked before should continue to work unchanged.
However, cryptic "List contains Signals that are not unique to it"
should be gone.
This should make it much easier and intuitive to use lists of
signals.
2008-09-08 17:17:23 +02:00
Jan Decaluwe
8b935b24e0 Mark signals in always decorator aruments list as read 2008-09-06 16:39:01 +02:00
Jan Decaluwe
2398c4aeb9 Added test with list of sigs in sensitivity list.
This also required a correction of list bracket syntax in VHDL.
2008-09-06 10:54:30 +02:00
Jan Decaluwe
020c087656 use comma as sensitivity list separator systematically 2008-09-05 16:46:54 +02:00
Jan Decaluwe
ba9fd74408 cleaned up attribute lookup 2008-09-02 16:12:10 +02:00
Jan Decaluwe
61275066f9 Added method delegation to Signal, to support signed() 2008-09-02 11:23:27 +02:00
Jan Decaluwe
b81bbfb334 Merged work on decorators and some code moves 2008-09-01 20:22:41 +02:00
Jan Decaluwe
67cd0a7c90 Moved list of signals test to Signal module 2008-08-28 22:21:30 +02:00
Jan Decaluwe
05d3b9ab2a Moved tuple of ints test to general util module 2008-08-28 22:04:30 +02:00
Jan Decaluwe
c953460448 Added decorators to examples 2008-08-28 21:43:19 +02:00
Jan Decaluwe
b9224b8e53 Removed support for hierarchy extraction of a top level generator.
The idea is that decorators should always be used to describe
behavior in hardware modules. This required a major adaptation
of the tests in test/conversion/toVerilog.
2008-08-28 11:38:12 +02:00
Jan Decaluwe
60ee8b50b5 Removed hierarchy extraction for generators.
The code was quite complicated for doubtful relevance. Signals
should never be defined inside generators, as their purpose
is communication between generators.
2008-08-26 22:18:59 +02:00
Guenter Dannoritzer
e714e4fa05 Merged added documentation for intbv.signed() with tip 2008-08-26 15:11:35 +02:00
Guenter Dannoritzer
5ebb299b71 Fixed some typing mistakes 2008-08-26 14:24:53 +02:00
Guenter Dannoritzer
0cd710da2c Extended intbv.signed() documentation
Added example of intbv.signed() with slice.
Moved index entries for intbv.min, .max, and ._nrbits up to the bit
slicing section.
Reworded the intbv.signed() description
2008-08-26 12:53:58 +02:00
Guenter Dannoritzer
b0205d400b Updated and added some index entries in the document
Renamed the latest enum() entry in the index.
Added new entry for concat() function.
Fixed some wording in the bit slicing section.
2008-08-25 23:05:10 +02:00
Jan Decaluwe
d8feb6cc5a Add invariants tests of signed operator 2008-08-25 13:50:23 +02:00
Guenter Dannoritzer
c4aa753687 Added reference for intbv.signed()
Added reference documentation for the intbv.signed() member function.
2008-08-25 13:38:20 +02:00
Guenter Dannoritzer
c9d7f3206c Added intbv.signed() documentation
In the introductional section of the manual under bit oriented
operations there is a new subsection describing the signed() member
function of intbv.
2008-08-25 12:33:03 +02:00
Jan Decaluwe
632b91f72b merged with guenter 2008-08-24 20:25:00 +02:00
Jan Decaluwe
ed6b1f8ecc Added tag rel_0-6dev9 for changeset bc1ecbdfa56d 2008-08-24 17:37:27 +02:00
Jan Decaluwe
10197ff855 release manifest input rel_0-6dev9 2008-08-24 17:26:12 +02:00
Guenter Dannoritzer
3f7f2fe37c Added Cver Makefile for x86_64
The added Makefile will compile myhdl_vpi.so properly for Cver on a
x86_64 architecture. Cver is compiled as a 32-bit application on x86_64
architecture and the current makefile.lnx will compile the PLI
application as 64-bit library, which does not work together with Cver.
2008-08-22 16:07:58 +02:00
Guenter Dannoritzer
c13932aba2 Added index entry for enum() function usage
When using the index of the documentation I was missing a link for the
enum() usage. There is an entry for the enum() function that links to
the "Miscellaneous modelling support functions" section, but there is a
much better explanation of the enum() function in the "Finite State Machine
modeling" chapter. This changeset adds an index entry for enum() to this
chapter.
2008-08-22 15:56:32 +02:00
Jan Decaluwe
1697a4fab0 prepare for development release 2008-08-21 15:29:10 +02:00
Jan Decaluwe
9a73012902 Removed tag rel_0-6dev9 2008-08-21 15:12:23 +02:00
Jan Decaluwe
4a7b57096d Added tag rel_0-6dev9 for changeset c5db34e3d223 2008-08-21 15:06:43 +02:00
Jan Decaluwe
f4287e5918 Fix copy of enum items.
The copy of the initial value of a signal, recently introduced,
created a new enum item object that didn't compare as expected
anymore. The fix is to introduce the special copy methods.
2008-08-21 15:03:14 +02:00
Jan Decaluwe
f42949c978 Refactored utility and miscellaneous functions 2008-08-20 22:12:10 +02:00
Jan Decaluwe
cb05a9b9d2 Removed processes and moved downrange to _misc 2008-08-20 12:21:15 +02:00
Guenter Dannoritzer
4f3121181b Added further tests with min > 0, that are classified as unsigned by the
signed() function
2008-08-05 22:41:52 +02:00
Guenter Dannoritzer
eb009e879e Improved doc string of signed() function 2008-08-05 22:39:51 +02:00
Jan Decaluwe
dfb2fff8e2 Fix _isListOfSignals function 2008-08-02 15:45:28 +02:00
Guenter Dannoritzer
6c5094d280 Added signed() member function to intbv
The intbv class got a signed() member function added. The function will
classify the value of an intbv instance as unsigned or signed based on
the min/max settings. If a value is classified as unsigned, the bit
pattern is interpreted as a 2's-complement value and returned. If the
value is classified as signed, the value will be returned as is. The
signed() function will return the value as integer.

Added test cases verify the proper function of the signed() function.
2008-07-31 23:09:25 +02:00
cfelton@localhost
045349965f Added an additional cver makefile for OS X. Also changed the _extracHierachy._isListOfSigs test to "obj is not None" from "obj != None". 2008-07-24 06:29:08 -05:00
cfelton@localhost
bc7b8fc44c Change to the conditional check. The conditional check would error out when numpy arrays were used. Numpy arrays would not resolve to a boolean value when tested. 2008-07-23 21:00:15 -05:00
traber@win.desy.de
4ec1283f1a print with more than one argument does not raise an error anymore but creates a warning. 2008-07-22 14:22:49 +02:00
traber@win.desy.de
4c54ab4b1e print with more than one argument does not raise an error anymore but creates a warning. 2008-07-22 14:14:30 +02:00