Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing Problem - Output Port and Record Member with the same name #3

Open
orsc opened this issue Jun 1, 2015 · 2 comments
Open

Parsing Problem - Output Port and Record Member with the same name #3

orsc opened this issue Jun 1, 2015 · 2 comments

Comments

@orsc
Copy link

orsc commented Jun 1, 2015

In veditor 1.2:
The following code produces this error:
/vhdl_test line 22 "Output outp cannot be used in an expression"
Thats the assigment to "parsing_problem". As it can be seen this type of asigment only fails if inside an process.

library ieee;
use ieee.std_logic_1164.all;

entity tst is
    port  (
        outp : out std_logic
    );
end tst;

architecture arch of tst is
    type r is record
        outp : std_logic;
    end record;
    signal ok_1,ok_2,parsing_problem : r;
begin

    ok_1 <= ( outp => '1');

    p : process
    begin
        ok_2.outp    <= '1';
        parsing_problem <= (outp => '1');
    end process;
end arch;
@ssharks
Copy link
Owner

ssharks commented Jun 1, 2015

Thanks for reporting, I had too look at the problem at least three times before I understood the problem.
The problem is not really in the parser itself, but more in the checks that are added afterwards. The outline etc. should still work.
I will take a look at it, but it might take a while. Feel free to take a look at the issue yourself.

@ssharks
Copy link
Owner

ssharks commented Jan 7, 2016

Dear orsc,

It has been a while, but I think I fixed your problem in the new release. Can you give it a try?

package_1.2.1.16.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants