Continue to Site

Welcome to EDAboard.com

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.

lpm xor in qu(at)rtus.parity bits for a Hamming generator

Status
Not open for further replies.

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
 

lpm xor

Why don't you simply use a VHDL XOR operator?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top