CBD model is computing Fibonacci numbers! :)
This commit is contained in:
parent
9c68b288c1
commit
80cba4b9f8
27 changed files with 429 additions and 269 deletions
20
examples/cbd/models/r_delay_out_rhs.od
Normal file
20
examples/cbd/models/r_delay_out_rhs.od
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# Our entire LHS (don't delete anything):
|
||||
|
||||
delay:RAM_Delay
|
||||
|
||||
delay_out:RAM_OutPort
|
||||
|
||||
delay_has_output:RAM_hasOutPort (delay -> delay_out)
|
||||
|
||||
state:RAM_State
|
||||
|
||||
delay_to_state:RAM_delay2State (delay -> state)
|
||||
|
||||
clock:RAM_Clock
|
||||
|
||||
# To create:
|
||||
|
||||
new_signal:RAM_Signal {
|
||||
RAM_x = `get_slot_value(matched('state'), 'x')`;
|
||||
}
|
||||
:RAM_hasSignal (delay_out -> new_signal)
|
||||
Loading…
Add table
Add a link
Reference in a new issue