added set bd channel without setting r

This commit is contained in:
alexmadison 2022-04-10 13:59:27 +02:00
parent 5aab3d2d3b
commit feb28f27bf
1 changed files with 24 additions and 1 deletions

View File

@ -188,7 +188,7 @@
)
)
(define set-bd-channel-neutral
(define set-bd-channel-neutral
(lambda (ch width)
(letrec ((ch-name (string-append ch ".d"))
(helper
@ -235,4 +235,27 @@
)
)
)
)
(define set-bd-data-valid
(lambda (ch width val)
(letrec ((ch-name (string-append ch ".d"))
(helper
(lambda (i v)
(cond
((=? i width) #t)
(#t (let ((tmp (string-append ch (string-append ".d[" (string-append (number->string i) "]")))))
(begin
(set tmp (% v 2))
(helper (+ 1 i) (truncate (/ v 2)))
)
))
)
)
))
(begin
(helper 0 val)
)
)
)
)