mirror of https://github.com/VLSIDA/OpenRAM.git
Fix syntax error.
This commit is contained in:
parent
86c22c8904
commit
b5b0e35c8a
|
|
@ -122,17 +122,17 @@ class functional(simulation):
|
||||||
# The read port should not be the same as the write port being written.
|
# The read port should not be the same as the write port being written.
|
||||||
other_read_ports = copy.copy(self.read_ports)
|
other_read_ports = copy.copy(self.read_ports)
|
||||||
other_read_ports.remove(first_write_port)
|
other_read_ports.remove(first_write_port)
|
||||||
|
other_ports = copy.copy(self.all_ports)
|
||||||
|
other_ports.remove(first_write_port)
|
||||||
# If we have one, check the feedthru read worked.
|
# If we have one, check the feedthru read worked.
|
||||||
if len(other_read_ports)>0:
|
if len(other_read_ports)>0:
|
||||||
first_read_port = other_read_ports[0]
|
first_read_port = other_read_ports[0]
|
||||||
comment = self.gen_cycle_comment("read (feedthru)", word, addr, "0"*self.num_wmasks, first_read_port, self.t_current)
|
comment = self.gen_cycle_comment("read (feedthru)", word, addr, "0"*self.num_wmasks, first_read_port, self.t_current)
|
||||||
self.add_read_one_port(comment, addr, first_read_port)
|
self.add_read_one_port(comment, addr, first_read_port)
|
||||||
self.add_read_check(word, first_read_port)
|
self.add_read_check(word, first_read_port)
|
||||||
|
other_ports.remove(first_read_port)
|
||||||
|
|
||||||
# All other ports are noops.
|
# All other ports are noops.
|
||||||
other_ports = copy.copy(self.all_ports)
|
|
||||||
other_ports.remove(first_write_port)
|
|
||||||
other_ports.remove(first_read_port)
|
|
||||||
for port in other_ports:
|
for port in other_ports:
|
||||||
self.add_nop_one_port(port)
|
self.add_nop_one_port(port)
|
||||||
self.cycle_times.append(self.t_current)
|
self.cycle_times.append(self.t_current)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue