Forum: FPGA, VHDL & Verilog parallel data into serial

Author: rushin (Guest)
Posted on:
Attached files:

Rate this post
0 useful
not useful
hello there i have made code for converting parallel data into serial 
data. i have attached my main file and test bench file. can you help 
me??. but it is not giving me correct data . can you help me??

Author: Lothar Miller (lkmiller) (Moderator)
Posted on:

Rate this post
0 useful
not useful
rushin wrote:
> but it is not giving me correct data
What do you expect? And what do you get instead?

> i have attached my main file and test bench file
The attached code is almost unreadable! You MUST use identation to get 
readable code. No one wants to dig through a wild heap of ASCII 

All in all that code looks like an software programmer trying to 
program an FPGA. But you must get the point: VH-D-L ist not VH-P-L. It 
is a description language, noct a programming language. And to 
describe something you must have a picture or a kind of sketch to look 
at. Or at least you must have some kind of picture in your mind. Then 
you can describe what you see.

Or the other way: when I hear "PISO" then I see a multiplexer or a shift 
register in mind. And now I can start to describe that thing...

A hint: think about the names of your signals and ports. Its disturbing 
to see somewhat like that:
serial_din1:OUT STD_LOGIC;
A input which is an OUT? Kind of strange...

Look there: http://www.lothar-miller.de/s9y/categories/26-SPI-Slave
Its SPI and in SPI the MISO is a Parallel In Serial Out...


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.