mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
added delays to uart AHB signals
This commit is contained in:
parent
7350b9f18f
commit
c3a6d6bf42
@ -45,11 +45,10 @@ module uart (
|
|||||||
logic [7:0] Din, Dout;
|
logic [7:0] Din, Dout;
|
||||||
|
|
||||||
// rename processor interface signals to match PC16550D and provide one-byte interface
|
// rename processor interface signals to match PC16550D and provide one-byte interface
|
||||||
always_ff @(posedge HCLK) begin
|
flopr #(1) memreadreg(HCLK, ~HRESETn, ~(HSELUART & ~HWRITE), MEMRb);
|
||||||
MEMRb <= ~(HSELUART & ~HWRITE);
|
flopr #(1) memwritereg(HCLK, ~HRESETn, ~(HSELUART & HWRITE), MEMWb);
|
||||||
MEMWb <= ~(HSELUART & HWRITE);
|
flopr #(3) haddrreg(HCLK, ~HRESETn, HADDR[2:0], A);
|
||||||
A <= HADDR[2:0];
|
|
||||||
end
|
|
||||||
assign HRESPUART = 0; // OK
|
assign HRESPUART = 0; // OK
|
||||||
assign HREADYUART = 1; // should idle high during address phase and respond high when done; will need to be modified if UART ever needs more than 1 cycle to do something
|
assign HREADYUART = 1; // should idle high during address phase and respond high when done; will need to be modified if UART ever needs more than 1 cycle to do something
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user