Skip to content

Instantly share code, notes, and snippets.

@kylemsguy
Created November 6, 2014 05:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylemsguy/4334cdf67d17046d39e1 to your computer and use it in GitHub Desktop.
Save kylemsguy/4334cdf67d17046d39e1 to your computer and use it in GitHub Desktop.
Quick Verilog ASCII generator
def get_ascii_hex(s:str):
[print("8'h", hex(ord(i))[2:].upper(), sep='') for i in s]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment