URL
https://opencores.org/ocsvn/a-z80/a-z80/trunk
Subversion Repositories a-z80
Compare Revisions
- This comparison shows the changes necessary to convert path
/a-z80/trunk/host
- from Rev 13 to Rev 14
- ↔ Reverse comparison
Rev 13 → Rev 14
/common/uart.v
22,7 → 22,7
|
// Calculate UART clock based on the input clock |
reg [28:0] d; |
wire [28:0] inc = d[28] ? (BAUD) : (BAUD - IN_CLOCK); |
wire [28:0] inc = d[28] ? 29'(BAUD) : 29'(BAUD - IN_CLOCK); |
wire [28:0] delta = d + inc; |
|
always @(posedge clk) |
48,7 → 48,9
begin |
if (wr & ~busy) |
begin |
// synopsys translate_off |
$strobe("[UART] %c", data[7:0]); |
// synopsys translate_on |
shifter <= { data[7:0], 1'h0 }; |
bitcount <= 4'd11; // 1 + 8 + 2 |
end |