Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hi,
I have a multiplier in my VHDL function.Instead of using multiplier operator I want to instatiate the multiplier in a function.For example
FUNCTION xyz(xxxxxxxxxxxx)
RETURN STD_LOGIC IS
:::
:::
VARIABLE mult : STD_LOGIC_VECTOR(LENGTH DOWNTO 0);
BEGIN
I want to replace ...
Thanks so much.I have a VHDL function FUNCTION "-" (L: STD_LOGIC_VECTOR) RETURN STD_LOGIC_VECTOR IS
BEGIN
RETURN - SIGNED(L);
END;
FUNCTION "ABs" (L: STD_LOGIC_VECTOR) RETURN STD_LOGIC_VECTOR IS
BEGIN
RETURN ABs (SIGNED(L));
END;
I want to generate similiar logic in verilog...
Hi ,
In VHDL we have a function to convert std_logic_vector to signed data type.Do we have anything like that in verilog to convert in to signed type in verilog.
for example i have wire [8:0] diff;
I want to convert it into absolute value.
Thanks
Alka
Hi ,
I am getting following error for this reg.
reg [63:0] data_vec[0:4];
/ Error: PARSE_ERROR: Parsing syntax error
// Multiple words referenced for memory Variable 'data
_vec' near token '('
How can I get rid of this error.How can I declare 5*64 bit vector?
Thanks
Alka
Hi,
I have declared a reg as reg [63:0] data_vec[0:4];
I am getting parsing error Multiple words referenced for memory Variable
How can I make one signal of 5*64 ,so that this error does not come?
Thanks
Hi,
Could you please writing a verilog function to extend the bits in left.
For example if a = 4'b1100;
b = 5
The output should be out = extend ( a,b)
should be equal to 01100;
Thanks
Hi ,
I need to convert this VHDL function in to verilog:Could you please help.
--------------------------------------------------------------------------------------------------
FUNCTION EXT (ARGUMENT: STD_LOGIC_VECTOR; SIZE: NATURAL) RETURN STD_LOGIC_VECTOR IS
VARIABLE RS...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.