repo.or.cz
/
trinary.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fixed issue with return address in cpu_sim.py. Fixed bugs in compiler generation...
[trinary.git]
/
digital_simulator
/
Architecture.py
blob
e817ea3c13fe4868180ae485561866b577711a1d
1
# vim: set fileencoding=utf8
2
# Architecture.py
3
#
4
# Architecture object.
5
#
6
7
class
Architecture
(
object
):
8
def
__init__
(
self
,
name
):
9
'''Initialize Architecture object. '''
10
11
self
.
name
=
name
12
13
def
__str__
(
self
):
14
return
"<Architecture:
%s
>"
% (
self
.
name
,)
15
16
if
__name__
==
"__main__"
:
17
a
=
Architecture
(
"architecture"
)
18
19
print
a