koshmar29
Newbie level 4
- Joined
- Dec 15, 2014
- Messages
- 5
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 36
Good evening,
I'm looking for a simple way to convert a sequence of keyboard strokes into a signed binary number I can use for processing. I understand how to convert scan codes into ascii/binary/bcd and how the keyboard works, but I'm having trouble when it comes to implementation. I'd like the input to be of unknown length--let's say up to 12 bits--and I'd like the input to be a signed whole integer, for simplicity. I tried searching for references, but I couldn't find anything specific to Verilog. In that regard, I'd greatly appreciate if anyone could give me advice on this matter.
I'm looking for a simple way to convert a sequence of keyboard strokes into a signed binary number I can use for processing. I understand how to convert scan codes into ascii/binary/bcd and how the keyboard works, but I'm having trouble when it comes to implementation. I'd like the input to be of unknown length--let's say up to 12 bits--and I'd like the input to be a signed whole integer, for simplicity. I tried searching for references, but I couldn't find anything specific to Verilog. In that regard, I'd greatly appreciate if anyone could give me advice on this matter.