2
0
forked from Ivasoft/DSView

protocol translation

This commit is contained in:
yunyaobaihong
2022-10-31 14:36:50 +08:00
parent 88d1071c9f
commit 6da9dc3785
10 changed files with 1590 additions and 11 deletions

View File

@@ -84,7 +84,8 @@ class Decoder(srd.Decoder):
outputs = []
tags = ['Encoding']
optional_channels = tuple(
{'id': 'd{}'.format(i), 'name': 'D{}'.format(i), 'desc': 'Data line {}'.format(i), 'idn':'dec_graycode_opt_chan_d{}'.format(i)}
{'id': 'd{}'.format(i), 'name': 'D{}'.format(i), 'desc': 'Data line {}'.format(i)
#, 'idn':'dec_graycode_opt_chan_d{}'.format(i)}
for i in range(MAX_CHANNELS)
)
options = (

View File

@@ -39,21 +39,21 @@ class Decoder(srd.Decoder):
) + tuple({
'id': 'd%d' % i,
'name': 'D%d' % i,
'desc': 'CPU data line %d' % i,
'idn':'dec_mcs48_chan_d%d' % i
'desc': 'CPU data line %d' % i
#, 'idn':'dec_mcs48_chan_d%d' % i
} for i in range(0, 8)
) + tuple({
'id': 'a%d' % i,
'name': 'A%d' % i,
'desc': 'CPU address line %d' % i,
'idn':'dec_mcs48_chan_a%d' % i
'desc': 'CPU address line %d' % i
#, 'idn':'dec_mcs48_chan_a%d' % i
} for i in range(8, 12)
)
optional_channels = tuple({
'id': 'a%d' % i,
'name': 'A%d' % i,
'desc': 'CPU address line %d' % i,
'idn':'dec_mcs48_opt_chan_a%d' % i
'desc': 'CPU address line %d' % i
#, 'idn':'dec_mcs48_opt_chan_a%d' % i
} for i in range(12, 13)
)
annotations = (

View File

@@ -90,8 +90,9 @@ class Ann:
def _channel_decl(count):
return tuple([
{'id': 'bit{}'.format(i), 'name': 'Bit{}'.format(i), 'desc': 'Bit position {}'.format(i),
'idn':'dec_numbers_and_state_Bit{}'.format(i)}
{'id': 'bit{}'.format(i), 'name': 'Bit{}'.format(i), 'desc': 'Bit position {}'.format(i)
#, 'idn':'dec_numbers_and_state_Bit{}'.format(i)
}
for i in range(count)
])

View File

@@ -77,6 +77,7 @@ class Decoder(srd.Decoder):
'id': 'd%d' % i,
'name': 'D%d' % i,
'desc': 'Data bus line %d' % i
#,'idn':'dec_z80_chan_d%d' % i
} for i in range(8)
) + (
{'id': 'm1', 'name': '/M1', 'desc': 'Machine cycle 1', 'idn':'dec_z80_chan_m1'},
@@ -89,8 +90,8 @@ class Decoder(srd.Decoder):
) + tuple({
'id': 'a%d' % i,
'name': 'A%d' % i,
'desc': 'Address bus line %d' % i,
'idn':'dec_z80_opt_chan_a%d' % i
'desc': 'Address bus line %d' % i
#, 'idn':'dec_z80_opt_chan_a%d' % i
} for i in range(16)
)
annotations = (