Replace old 'reg_clk' name by more generic 'clk'

The reason is that the template will always assume that the
bus signals and the registers are synchronous. Designers should
implement possible synchronization logic outside of this block.
This commit is contained in:
Dennis Potter 2021-09-15 23:42:52 -07:00
parent 61cd1fbfe3
commit fea0019aa8
Signed by: Dennis
GPG Key ID: 186A8AD440942BAF
2 changed files with 3 additions and 4 deletions

View File

@ -67,8 +67,7 @@ module_declaration:
<<UNINDENT>>
(
<<INDENT>>
// Clock & Resets
input reg_clk,
// Resets
{resets}
// Inputs

View File

@ -1,10 +1,10 @@
---
sense_list_rst:
rtl: |-
always_ff @(posedge reg_clk or {rst_edge} {rst_name})
always_ff @(posedge clk or {rst_edge} {rst_name})
sense_list_no_rst:
rtl: |-
always_ff @(posedge reg_clk)
always_ff @(posedge clk)
rst_field_assign:
rtl: |-
if ({rst_negl}{rst_name})