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.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
endgenerate
its prints right from 0 to 9 but after 9 it prints something else as per ASCII table. Therefore I need 2 digits from ASCII instead of 1 but I don't know how to arrange this?
something like this:
assign number[15:8] = ((32/10 ) % 10) + 8'h30;
assign number[7:0] = ((32/1 ) % 10) + 8'h30;
can split into 2 digits but don't know how to arrange inside loop.
Any help?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…