neocool
Member level 4
How would you translate this piece of code from Verilog to VHDL:
reg slck_en;
reg [4:0] count32, count1x;
.
.
.
slck_en <= (count1x == 5'b10010);
===============
The following translation does not pass syntax check:
slck_en <= to_bit(count1x = "10010");
assuming slck_en is of type bit and count1x is std_logic_vector(4 downto 0);
Thanks
neocool
reg slck_en;
reg [4:0] count32, count1x;
.
.
.
slck_en <= (count1x == 5'b10010);
===============
The following translation does not pass syntax check:
slck_en <= to_bit(count1x = "10010");
assuming slck_en is of type bit and count1x is std_logic_vector(4 downto 0);
Thanks
neocool