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.

Matlab code help working with boolean

Status
Not open for further replies.

ghattasak

Member level 1
Joined
Dec 31, 2012
Messages
33
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,595
helloi hae writtten the following code on matlab
data = randi(2^52,[64,1]);
m = de2bi(uint64(data),64);
groups = boolean(m');

in this code the matrix groups is a boolean matrix with each entry 1 bit a 0 or 1
in the first row there is the LSBs of all 64 numbers generated by the randi function
i want to store this row in a UINT64 variable
let say i have [1 0 1 1] i want it to be stored in a variable as 1011

then i want to transfer these groups of bits to the fpga
do you think this is possible in matlab orshould i transfer the codes as they are and group the 1st bit of each number,the 2nd...etc using vhdl in the fpga?

in the end i want to have a 64bit variable containing 64 LSBs of all 64 numbers and another containing the second bit of all the number and so on
i will use this data in labview DMA to fpga transfer for sequential design

and suggestions?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top