projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1f92c6f
)
remove unneeded code
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sun, 2 Jun 2019 13:29:25 +0000
(14:29 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sun, 2 Jun 2019 13:29:25 +0000
(14:29 +0100)
src/experiment/score6600.py
patch
|
blob
|
history
diff --git
a/src/experiment/score6600.py
b/src/experiment/score6600.py
index 602be44ed86e316b5654ce55596c64d08081088b..47101d1e90f68b6ab4fa15308a53349bcf1c0ad8 100644
(file)
--- a/
src/experiment/score6600.py
+++ b/
src/experiment/score6600.py
@@
-201,10
+201,6
@@
class CompUnitALUs(CompUnitsBase):
# hand the same operation to all units
for alu in self.units:
comb += alu.oper_i.eq(self.oper_i)
# hand the same operation to all units
for alu in self.units:
comb += alu.oper_i.eq(self.oper_i)
- #comb += self.units[0].oper_i.eq(Const(0, 2)) # op=add
- #comb += self.units[1].oper_i.eq(Const(1, 2)) # op=sub
- #comb += self.units[2].oper_i.eq(Const(2, 2)) # op=mul
- #comb += self.units[3].oper_i.eq(Const(3, 2)) # op=shf
return m
return m
@@
-237,7
+233,6
@@
class CompUnitBR(CompUnitsBase):
# hand the same operation to all units
for alu in self.units:
comb += alu.oper_i.eq(self.oper_i)
# hand the same operation to all units
for alu in self.units:
comb += alu.oper_i.eq(self.oper_i)
- #comb += self.br1.oper_i.eq(Const(4, 3)) # op=bgt
return m
return m
@@
-810,7
+805,7
@@
def create_random_ops(dut, n_ops, shadowing=False, max_opnums=3):
src2 = randint(1, dut.n_regs-1)
dest = randint(1, dut.n_regs-1)
op = randint(0, max_opnums)
src2 = randint(1, dut.n_regs-1)
dest = randint(1, dut.n_regs-1)
op = randint(0, max_opnums)
- opi = 0
#
if randint(0, 3) else 1 # set true if random is nonzero
+ opi = 0 if randint(0, 3) else 1 # set true if random is nonzero
if shadowing:
insts.append((src1, src2, dest, op, opi, (0, 0)))
if shadowing:
insts.append((src1, src2, dest, op, opi, (0, 0)))