OpenCores
URL https://opencores.org/ocsvn/core_arm/core_arm/trunk

Subversion Repositories core_arm

[/] [core_arm/] [trunk/] [soft/] [cdef/] [cdef_calc.el] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 tarookumic
(progn
2
  (load "cdef_lib_b1")
3
  (load "cdef_lib_c1")
4
  (load "cdef_lib_g1")
5
  (load "cdef_lib_l1")
6
  (load "cdef_lib_m1")
7
)
8
 
9
(setq a '(1 1 0 0))
10
(setq b '(1 0 0 0))
11
(setq c '(1 1 0 1))
12
(setq ac (make-setbit-groups a))
13
(setq bc (make-setbit-groups b))
14
(setq cc (make-setbit-groups c))
15
 
16
(setq dc (or-setbit-groups ac bc))
17
(or-setbit-groups dc cc)
18
 
19
(or-setbit-groups-func '((0) (1 1 )))1
20
 
21
 
22
(setq l '(2 3 4))
23
(setcdr l '(4))
24
l
25
 
26
(setq a1 (hex-to-bitstring "ff"))
27
(setq b1 (hex-to-bitstring "f0"))
28
(setq c1 (make-undef-bitstring a b))
29
 
30
(setq a2 (hex-to-bitstring "ff"))
31
(setq b2 (hex-to-bitstring "f8"))
32
(setq c2 (make-undef-bitstring a b))
33
 
34
(setq cc c2)
35
 
36
(setq cu (make-set-bitstring c2))
37
 
38
 
39
 
40
 
41
(setq h (make-hash-table))
42
(puthash 'a a h)
43
(puthash 'b 2 h)
44
(puthash 'c 3 h)
45
 
46
(list (gethash 'c h) (gethash 'a h))
47
 
48
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.