fhdl: make WRITE_FIRST default
This commit is contained in:
parent
2726ba2242
commit
0cc7e2ac1e
|
@ -310,7 +310,7 @@ Each port description contains:
|
||||||
in each sub-word. If it is set to 0, the port is using whole-word
|
in each sub-word. If it is set to 0, the port is using whole-word
|
||||||
writes only and the width of the write enable signal must be 1. This
|
writes only and the width of the write enable signal must be 1. This
|
||||||
parameter is ignored if there is no write enable signal.
|
parameter is ignored if there is no write enable signal.
|
||||||
- the mode of the port (default READ_FIRST, ignored for asynchronous
|
- the mode of the port (default WRITE_FIRST, ignored for asynchronous
|
||||||
ports). It can be:
|
ports). It can be:
|
||||||
* READ_FIRST: during a write, the previous value is read.
|
* READ_FIRST: during a write, the previous value is read.
|
||||||
* WRITE_FIRST: the written value is returned.
|
* WRITE_FIRST: the written value is returned.
|
||||||
|
|
|
@ -232,7 +232,7 @@ class Instance:
|
||||||
|
|
||||||
class MemoryPort:
|
class MemoryPort:
|
||||||
def __init__(self, adr, dat_r, we=None, dat_w=None,
|
def __init__(self, adr, dat_r, we=None, dat_w=None,
|
||||||
async_read=False, re=None, we_granularity=0, mode=READ_FIRST):
|
async_read=False, re=None, we_granularity=0, mode=WRITE_FIRST):
|
||||||
self.adr = adr
|
self.adr = adr
|
||||||
self.dat_r = dat_r
|
self.dat_r = dat_r
|
||||||
self.we = we
|
self.we = we
|
||||||
|
|
Loading…
Reference in New Issue