B
BlueDoze
Guest
I'd like to know the verilog equivalent to the following vhdl code.
entity myEntn is
port ( input : in bit_vector ( 16 downto 1);
output1 : out integer;
output2 : out integer;
output3 : out integer
);
end MyEntn;
architecture Arch of MyEntn is
begin
process ( input )
begin
output1 <= input'left;
output2 <= input'right;
output3 <= input'length;
end process;
end;
Regards,
entity myEntn is
port ( input : in bit_vector ( 16 downto 1);
output1 : out integer;
output2 : out integer;
output3 : out integer
);
end MyEntn;
architecture Arch of MyEntn is
begin
process ( input )
begin
output1 <= input'left;
output2 <= input'right;
output3 <= input'length;
end process;
end;
Regards,