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.

Loading new input :)

Status
Not open for further replies.

Newbie_barbie

Newbie level 1
Newbie level 1
Joined
Apr 9, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,291
hi
I'm new to this site and to vhdl coding as well. hope I get some help..
I have to design a system which loads series of input and store it into a register. The input has to be accepted through same pins of FPGA.
For example
My 1st input data(4 bits) is 1010, this data gets stored into reg1
2nd input data is 1111, this has to get concatenated with reg1 previous contents.
3rd input data is 0101, this has to concatenate with reg1 previous contents and so on.
I thought of using for loop but read somewhere that for loop isn't synthesizeable so please help me in writing the code. I need help as soon as possible.
I have a doubt too--
How will FPGA accept data through same pins one after the other. ??????
Regards
 

I suggest you read up on digital design. VHDL is NOT a programming language, it is a hardware description language. You need to understand the hardware before you can write any VHDL code.

So get a peice of paper and before writing the code, draw the circuit you're trying to create. If you cant do this - then you have a lot of reading/ learning to do.
 

To further focus your reading, you are going to have to develop some sort of register interface protocol. Normally, the FPGA would have to receive an address (all your data isn't being stored in reg1 is it?), data, and a read/write pulse at a minimum. Your description is not very detailed, but since you describe writing part of a register, you would also need nybble enable signals. Then you can write code that will monitor those signals and use the address and nybble enables to place the 4-bit data in the correct location of the correct register.

That is what you need for a generic random access synchronous register interface. Without more details not much more can be said about it.

r.b.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top