Skip to content

Commit

Permalink
Fix Processor model
Browse files Browse the repository at this point in the history
  • Loading branch information
romancardenas committed Jun 25, 2024
1 parent 20f9695 commit c6c38ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xdevs/examples/gpt/gpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def deltext(self, e):
if self.phase == PHASE_PASSIVE:
self.current_job = self.i_in.get()
self.hold_in(PHASE_ACTIVE, self.proc_t)
self.continuef(e)
else:
self.continuef(e)

def lambdaf(self):
self.o_out.add(self.current_job)
Expand Down Expand Up @@ -195,4 +196,4 @@ def __init__(self, name: str, gen_t: float, proc_t: float, obs_t: float):
gpt = Gpt("gpt", 3, 5, 100)
coord = Coordinator(gpt)
coord.initialize()
coord.simulate_iters()
coord.simulate_time()

0 comments on commit c6c38ae

Please sign in to comment.