EmbDev.net

Forum: FPGA, VHDL & Verilog how to handle this line of Verilog


von Sylvain N. (Company: myself) (mpgguy)


Rate this post
useful
not useful
I am currently converting some Verilog into VHDL

that goes quite well till now : I don't know how to handle that 
expression'
'
8b'001100111

I checked I really need only 8 bits ... so obviously there's one extra 
bit in this expression ... and the Verilog code was "working"

You have any idea which bit is "forgotten".... the first 0 ... or the 
last 1 ??

Thank you

von Lothar M. (Company: Titel) (lkmiller) (Moderator)


Rate this post
useful
not useful
Sylvain N. wrote:
> I checked I really need only 8 bits ... so obviously there's one extra
> bit in this expression ... and the Verilog code was "working"
See there at "integer numbers":
http://www.asic-world.com/verilog/syntax1.html
"... the leftmost bits are truncated."

von Sylvain N. (Company: myself) (mpgguy)


Rate this post
useful
not useful
Thank you so much

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.