Module:MOS in EDO: Difference between revisions
m Debugging; converting args to numbers |
Corrected valid generator range: 0 exclusive to period exclusive |
||
| Line 168: | Line 168: | ||
-- Are the args for the starting mos valid? | -- Are the args for the starting mos valid? | ||
-- The number of steps in the generator must be between 1 and the number of steps in the period | -- The number of steps in the generator must be between 1 and the number of steps in the period | ||
local starting_mos_valid = gen_in_edosteps > 1 and gen_in_edosteps < period_in_edosteps | local starting_mos_valid = gen_in_edosteps >= 1 and gen_in_edosteps < period_in_edosteps | ||
-- Calculate the starting mos | -- Calculate the starting mos | ||