mariac1210
Newbie level 2

- Joined
- Nov 6, 2009
- Messages
- 2
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Wexford, Ireland
- Activity points
- 1,297
lpm xor
Hi all,
I'm trying to implement an xor gate using the lpm xor megafunction in Quartus. I need to create three parity bits for a Hamming generator. This means that I need three xor gates with three inputs. I know I can declare the three gates after the componant declaration in the archetecture. My width is 1 and the size is 3. What I'm confused about is the DATA in. In the LPM componant declaration the DATA is declared by
DATA : in std_logic_2D(LPM_SIZE downto 1, LPM_WIDTH downto 1)
I'm sending in a 4 bit string.Using the above declaration though, how do I send three specific bits into each of my xor gates? For example, gate1 needs to xor bits 1,2 and 4.
THanks
Maria
Hi all,
I'm trying to implement an xor gate using the lpm xor megafunction in Quartus. I need to create three parity bits for a Hamming generator. This means that I need three xor gates with three inputs. I know I can declare the three gates after the componant declaration in the archetecture. My width is 1 and the size is 3. What I'm confused about is the DATA in. In the LPM componant declaration the DATA is declared by
DATA : in std_logic_2D(LPM_SIZE downto 1, LPM_WIDTH downto 1)
I'm sending in a 4 bit string.Using the above declaration though, how do I send three specific bits into each of my xor gates? For example, gate1 needs to xor bits 1,2 and 4.
THanks
Maria