![]() |
|
|
|
#1 |
|
I created two registers (A and B) I want to add them together and store the answer in A.
Is it possible to use operators such as + - x? Can any body help me to accomplish this task? library ieee; use ieee.std_logic_1164.all; entity toets3 is port( data : in std_ulogic_vector(7 downto 0); clk : in std_logic; Q : out std_ulogic_vector(7 downto 0)); end toets3; architecture a of toets3 is signal A,B : std_ulogic_vector (7 downto 0); begin process (clk) begin if rising_edge(clk) then A <= A + B; end if; end process; Q <= A; end a; Haai |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to execute an external software from VHDL? And how to interface VHDL with JAVA? | becool_nikks | Software | 0 | 03-06-2009 07:08 PM |
| reading mp3 file in binary format in vhdl | latheesh | General Help Related Topics | 0 | 02-05-2008 05:40 AM |
| Help on auto conversion from Matlab to vhdl on filter design | hardheart | Hardware | 0 | 12-07-2007 09:19 AM |
| ARRAY(n DOWNTO 0) OF STD_LOGIC_VECTOR(m DOWNTO 0) - VHDL | freitass | Hardware | 0 | 11-01-2007 03:44 PM |
| Writing Register code in vhdl | amirster | Hardware | 2 | 06-11-2007 03:22 PM |