bit flipping algorithm

Status
Not open for further replies.

bunty_22

Newbie level 5
Joined
May 11, 2014
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
59
hello

i need verilog hdl code for bitflipping algorithm
plzz help me out
 

Not is a miscellaneous or logical operator .
For VHDL NOT is an inversion operation, but in Verilog, which is what the OP wants, the logical operation is ! and the bitwise operator is ~.

I must say that any decent (well even that bad ones) tutorial will have that as one of the first things that is shown (Verilog operators).
 

the parity check matrix is 8*16;
well the input to encoder is 00001100..after encoding it is 1100100000001100;
the noise is 8 bit i.e 00000001
so these are d inputs
jus gimme an idea how to write d code

thanks
 

genvar i;
generate
for( i=0; i<length; i=i+1 )
begin :
if somevariable_bitposition
assign working = not working;
else
assign working = working;
endif
end
endgenerate
 

genvar i;
generate
for( i=0; i<length; i=i+1 )
begin :
if somevariable_bitposition
assign working = not working;
else
assign working = working;
endif
end
endgenerate

What is this not doing in the code not is a Verilog keyword for a NOT gate and has to be instantiated. Then you are using endif which is a VHDL keyword? Hmm, it can't be VHDL code as there is the assign statement which is a Verilog keyword and there is a genvar too!

Do you know either language or is this pseudo code where you're mixing languages to confuse the OP so they go away ;-).
 

The rest of the post is missing.

There was a paragraph above the code section that included ' dis is d PSEUDO CODE' ,.
But it should be clear that it is 'PSEUDO'
'if somevariable_bitposition',
Obviously neither verilog/VHDL

Yep, there is a mixture, I had two projects open , VHDL/ Vlog , debugging an FPGA SATA interface with a broken JTag Cable which requires a finger, plus I was dealing with a SF-Express and an aliexpress seller on chat..

The rest of my post is obviously included in the cut & paste to Ali-express……
 
Last edited:

The rest of my post is obviously included in the cut & paste to Ali-express……

Good thing then that it doesn't make too much of a difference. It's always a surprise what you are going to get this time, no matter what you specify to the seller. ;-)
 

Yes,
That's why I sit on these guys…..

In reality I know FS-express scans at collection within 10 minutes, they show scanning yesterday (13th), 4 days AFTER seller stated them as shipped.(It's 1-2 day delivery to H.K)
I need these silicon sheets to get a bigger heatsink on the FPGA, it's starting to smell, short some place……
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…