Sorry, It may be very basic question. But I could not find any solution on and off the line. I am using vivado 2013.4 version for my tasks. Here is my code.
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.math_real.all;
use IEEE.NUMERIC_STD.ALL;
package my_package is
type my_datatype is
record
n1 : real ;
n2 : unsigned(31 downto 0);
n3 : unsigned(31 downto 0);
n4 : unsigned(31 downto 0);
nE : integer;
end record;
end my_package;
use work.my_package.all;
entity read_mydata is
Port (a_in : inout my_datatype ; b_out : out my_datatype );
end read_mydata;
architecture Behavioral of read_mydata is
begin
b_out <= (abs(a_in.n1), a_in.n2, a_in.n3, a_in.n4, abs(a_in.nE));
end Behavioral;
The code has no visible error. My question is, how to force the input in the simulator? I tried forcing the a_in using comma and semicolon seperators. There was error. For example, In Tcl console,
add_force {/read_file/a_in} -radix bin {2.5, 5, 4, 3, -2 0ns}
ERROR: [#UNDEF] Time value 5, is not a valid number
Is this program synthesisable?
I tried forcing the a_in using comma and semicolon seperators
please edit the question to state what exactly you tried.It didnt work
- what did happen? If there was an error message, please include that. – scary_jeff