mirror of
https://github.com/Silicon1602/srdl2sv.git
synced 2024-12-22 15:08:39 +00:00
Flip r_vld and w_vld in <REG>_sw_wr/<REG>_sw_rd assignment
This commit is contained in:
parent
fea0019aa8
commit
887164dd52
@ -4,8 +4,8 @@ rw_wire_assign_1_dim:
|
|||||||
|
|
||||||
// Register-activation for '{path}' {alias}
|
// Register-activation for '{path}' {alias}
|
||||||
assign {path}_accss = b2r.addr == {addr};
|
assign {path}_accss = b2r.addr == {addr};
|
||||||
assign {path}_sw_wr = {path}_accss && b2r.r_vld;
|
assign {path}_sw_wr = {path}_accss && b2r.w_vld;
|
||||||
assign {path}_sw_rd = {path}_accss && b2r.w_vld;
|
assign {path}_sw_rd = {path}_accss && b2r.r_vld;
|
||||||
signals:
|
signals:
|
||||||
- name: '{path}_sw_wr'
|
- name: '{path}_sw_wr'
|
||||||
signal_type: 'logic'
|
signal_type: 'logic'
|
||||||
@ -18,8 +18,8 @@ rw_wire_assign_multi_dim:
|
|||||||
|
|
||||||
// Register-activation for '{path}' {alias}
|
// Register-activation for '{path}' {alias}
|
||||||
assign {path}_accss{genvars} = b2r.addr == {addr}+({genvars_sum});
|
assign {path}_accss{genvars} = b2r.addr == {addr}+({genvars_sum});
|
||||||
assign {path}_sw_wr{genvars} = {path}_accss{genvars} && b2r.r_vld;
|
assign {path}_sw_wr{genvars} = {path}_accss{genvars} && b2r.w_vld;
|
||||||
assign {path}_sw_rd{genvars} = {path}_accss{genvars} && b2r.w_vld;
|
assign {path}_sw_rd{genvars} = {path}_accss{genvars} && b2r.r_vld;
|
||||||
signals:
|
signals:
|
||||||
- name: '{path}_sw_wr'
|
- name: '{path}_sw_wr'
|
||||||
signal_type: 'logic'
|
signal_type: 'logic'
|
||||||
|
Loading…
Reference in New Issue
Block a user