Beruflich Dokumente
Kultur Dokumente
);
endmodule
//=================================================================
// BINARY to ASCII Converter
//=================================================================
/*
* MODULE: Binary2Ascii()
*
* This module builds generates the two ASCII codes that form the
* hexadecimal representation for the eight-bit value presented at
* its input. The conversion results are latched on the rising edge
* of the master clock when the write enable line is asserted.
*
* When the HiByte input is HI, the character representing the most
* significant nibble is output, otherwise the character representing
* the least significant character is output.
*/
module Binary2Ascii(ascii, binary, WE, rst, clk);
parameter LO = 1'b0, HI = 1'b1;
output
input
input
input
[15:0] ascii;
[7:0] binary;
WE;
rst, clk;