Skip to content
Snippets Groups Projects

Update

Merged Sigrid Scherl requested to merge update into master
2 files
+ 50
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -50,14 +50,20 @@ module tfc_dec (
end
else begin
case(State)
/* case(State)
StateIdle: State <= (cmd_received) ? StateCMDExec : State;
StateCMDExec: State <= StateWaitforLock;
StateWaitforLock: State <= (wd_reset | !tfc_lock) ? StateIdle : State;
default: State <= StateIdle;
endcase
endcase */
case(State)
StateIdle: State <= (cmd_received) ? StateWaitforLock : State;
StateWaitforLock: State <= (wd_reset | !tfc_lock) ? StateIdle : State;
default: State <= StateIdle;
endcase
/* case(State)
StateIdle: begin
wd_counter_run <= 0;
@@ -76,6 +82,29 @@ module tfc_dec (
StateWaitforLock: ;//wait for tfc_lock
endcase */
case(State)
StateIdle: begin
if (cmd_received) begin
wd_counter_run <= 1;
tfc_bits <= cmd_rec[5:1];
end
else
wd_counter_run <= 0;
end
/* StateCMDExec: begin
wd_counter_run <= 1;
// Write 6bit vector to bits
// Modify bit positions in tfc_package
tfc_bits <= tfc_command[5:1];
end */
StateWaitforLock: ;//wait for tfc_lock
endcase
end
end
Loading