view a13/smv/test2.smv @ 146:6663205ed308

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 30 Dec 2020 12:07:07 +0900
parents 0e8a0e50ed26
children
line wrap: on
line source

MODULE counter_cell(carry_in)
 VAR
   value : boolean;
 ASSIGN
   init(value) := FALSE;
   next(value) := value xor carry_in;
 DEFINE
  carry_out := value & carry_in;
MODULE main
 VAR
   bit0 : counter_cell(TRUE);
   bit1 : counter_cell(bit0.carry_out);
   bit2 : counter_cell(bit1.carry_out);