Skip to content
This repository was archived by the owner on Feb 12, 2026. It is now read-only.

Commit fbdd9a9

Browse files
committed
Add reset ports to pipelining/latch module
1 parent 650336f commit fbdd9a9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

WriteVHDLSyntax.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,7 @@ def writeTopLevelMemoryType(mtypeB, memList, memInfo, extraports, delay = 0, spl
636636
portlist += " dina => "+mem+"_din,\n"
637637
if delay > 0:
638638
delay_portlist += " clk => clk,\n"
639+
delay_portlist += " reset => reset,\n"
639640
delay_portlist += " wea => "+mem+"_wea,\n"
640641
delay_portlist += " addra => "+mem+"_writeaddr,\n"
641642
delay_portlist += " dina => "+mem+"_din,\n"
@@ -1529,6 +1530,7 @@ def writeStartSwitchAndInternalBX(module,mem,extraports=False, delay = 0, first_
15291530

15301531
int_ctrl_func += " port map (\n"
15311532
int_ctrl_func += " clk => clk,\n"
1533+
int_ctrl_func += " reset => reset,\n"
15321534
int_ctrl_func += " done => PC_start,\n"
15331535
int_ctrl_func += " bx_out => PC_bx_in,\n"
15341536
int_ctrl_func += " bx => PC_bx_out,\n"
@@ -1549,6 +1551,7 @@ def writeStartSwitchAndInternalBX(module,mem,extraports=False, delay = 0, first_
15491551
int_ctrl_func += " LATCH_"+mtype+": entity work.tf_pipeline_slr_xing\n"
15501552
int_ctrl_func += " port map (\n"
15511553
int_ctrl_func += " clk => clk,\n"
1554+
int_ctrl_func += " reset => reset,\n"
15521555
if "MP_" in mtype :
15531556
int_ctrl_func += " done => PC_done,\n"
15541557
int_ctrl_func += " bx_out => PC_bx_out,\n"
@@ -1573,6 +1576,7 @@ def writeStartSwitchAndInternalBX(module,mem,extraports=False, delay = 0, first_
15731576
int_ctrl_func += " LATCH_"+mtype+"_BX_GEN: entity work.tf_pipeline_slr_xing\n"
15741577
int_ctrl_func += " port map (\n"
15751578
int_ctrl_func += " clk => clk,\n"
1579+
int_ctrl_func += " reset => reset,\n"
15761580
if first_proc:
15771581
if mtype_up == "VMSMER":
15781582
mtype_up = "PC"

0 commit comments

Comments
 (0)