Forum Discussion
Altera_Forum
Honored Contributor
17 years agosimple verilog to vhdl translation question
hello,
in a verilog module i found a declaration, that is, output reg ack; in vhdl translation, i can simply write : signal ack; am i right??12 Replies
- Altera_Forum
Honored Contributor
another one verilog declaration:
reg [31:0] internal_regs[3:0] how the codes in vhdl looks like? - Altera_Forum
Honored Contributor
Almost right!
The fact that the verilog is output reg ack; states that the signal ack is an output from this module. In your VHDL you need to ensure that the signal ack is defined as an output port on your entity. entity test_e is port ( ... ack : out std_logic ... ); end entity test_e; also remember that in VHDL you will not be able to put an output signal on the Right hand side of an expression. i.e you may need an intermediate signal and assign that to your module output