EmbDev.net

Forum: FPGA, VHDL & Verilog Factorial of a binary number


Author: John Whittaker (Company: Miami U) (johnw)
Posted on:

Rate this post
0 useful
not useful
I'm new to VHDL, and I want to create something that accepts an 8 bit 
input, but has a 16bit data bus (have to add 8 zeros I assume). Be nice 
if there was an overflow bit that went high if the input was valid (not 
too large, less than or equal to 9999). A state machine to control this 
datapath and the start state should remain hi until the input signal is 
brought hi. If the overflow is high, it wont calculate. this and state 
machine have to be integrated together. This is my goal at least, can 
you give me some pointers as to starting this code? Thank you,

John

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

Rate this post
0 useful
not useful
> I want to create something
What "something" could that be?
What is your actual problem?
Please describe it without your personal interpretation: where does 
the data come from, what must happen with it and where does it go to.

Author: ... (Guest)
Posted on:

Rate this post
0 useful
not useful
>something that accepts an 8 bit input
>nput was valid (not too large, less than or equal to 9999)


8 bit. 9999

?????????????????????????????

Reply

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.