Fix the SPI MISO logic
Modify the tb to make it easier from all aspects
This commit is contained in:
+2
-1
@@ -74,7 +74,6 @@ module Reg_file (
|
||||
else begin
|
||||
case (state)
|
||||
IDLE: begin
|
||||
rvalid_flag <= 1'b0;
|
||||
err_flag <= 1'b0;
|
||||
|
||||
// Priority Check: Did we crash/reset while EXEC bit was still 1?
|
||||
@@ -99,6 +98,7 @@ module Reg_file (
|
||||
end
|
||||
|
||||
BUSY: begin
|
||||
rvalid_flag <= 1'b0;
|
||||
if (err_flag) begin
|
||||
state <= IDLE;
|
||||
end
|
||||
@@ -133,6 +133,7 @@ module Reg_file (
|
||||
// Wait for Controller to register the command and pull 'done' LOW (Busy)
|
||||
EXEC_ACK: begin
|
||||
busy_flag <= 1'b1;
|
||||
rvalid_flag <= 1'b0;
|
||||
if (i_con_done == 1'b0) begin
|
||||
state <= EXEC_WAIT;
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user