mirror of
https://github.com/myhdl/myhdl.git
synced 2024-12-14 07:44:38 +08:00
Merge from default
--HG-- branch : 0.9-dev
This commit is contained in:
commit
a8949f771f
24
myhdl/test/bugs/test_bug_43.py
Normal file
24
myhdl/test/bugs/test_bug_43.py
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#! /usr/bin/env python
|
||||||
|
|
||||||
|
from myhdl import *
|
||||||
|
|
||||||
|
def bug_43(sigin, sigout):
|
||||||
|
|
||||||
|
@always_comb
|
||||||
|
def output():
|
||||||
|
# This does not generate correct VHDL code (resize is missing)
|
||||||
|
sigout.next = concat(sigin[0], sigin[2])
|
||||||
|
|
||||||
|
# The following does work:
|
||||||
|
tmp = concat(sigin[0], sigin[2])
|
||||||
|
sigout.next = tmp
|
||||||
|
|
||||||
|
return output
|
||||||
|
|
||||||
|
def test_bug_43():
|
||||||
|
sigin = Signal(intbv(0)[4:])
|
||||||
|
sigout = Signal(intbv(0)[4:])
|
||||||
|
|
||||||
|
assert conversion.analyze(bug_43, sigin, sigout) == 0
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user