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.

verilog code for btree

Status
Not open for further replies.

anandanips

Junior Member level 1
Joined
Dec 21, 2007
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,439
i need verilog code for 4 bit btree .for eg. each node having some 5bit value. externally we are giving 4 bit value,that is 4 bit address. we are checking the adderess with btree by bit by bit. finally if address matches we are returning the value in that address.

please help me...
 

anandanips said:
i need verilog code for 4 bit btree .for eg. each node having some 5bit value. externally we are giving 4 bit value,that is 4 bit address. we are checking the adderess with btree by bit by bit. finally if address matches we are returning the value in that address.

please help me...

If i do not mistake you'd better tie your address and data in record form( in VHDL).
In Verilog you can enter the record : mem.location and mem.data paralelly by index matching. And just scan the address, return the index counter,and finally return the mem.data[final_index_counter_value]. Try yourself and good luck.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top