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.

How to write decimal numbers in VHDL?

Status
Not open for further replies.

NoHa111

Junior Member level 3
Joined
Sep 2, 2005
Messages
25
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,515
hi all,

i feel it is very silly question but it is my first trial ever to write a vhdl code so please help me

how can i write decimal numbers in vhdl??i.e 1.2 when i wrote it in binary form vhdl can't understand it
any help???
 

Re: beginner question

Hello!
You can use two registers:
- one for the decimal part of the number
- the other for the integer part
 

Re: beginner question

master.ro said:
Hello!
You can use two registers:
- one for the decimal part of the number
- the other for the integer part

thanks alot for your reply
actually i will explain my project code:
a filter is supplied by it's frquency zeros and poles from a finite state machine
the values of these poles and zeros are in decimal so i donn know how to express the out port type of the state machine neither the input port for the filter,that is why i can't imagine how your answer can be applied

and thanks again
please everybody it is urgent plz heeeeeelp
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top