clint HREADY signal update

This commit is contained in:
bbracker 2021-03-12 20:23:55 -05:00
parent 86078d856f
commit f4fb546969

View File

@ -45,9 +45,7 @@ module clint (
assign memread = HSELCLINT & ~HWRITE;
assign memwrite = HSELCLINT & HWRITE;
assign HRESPCLINT = 0; // OK
// assign HREADYCLINT = 1; // Respond immediately
always_ff @(posedge HCLK) // delay response
HREADYCLINT <= memread | memwrite;
assign HREADYCLINT = 1'b1; // will need to be modified if CLINT ever needs more than 1 cycle to do something
// word aligned reads
generate