2022-09-29 16:23:17 -05:00
|
|
|
# Use a FF with constant input to connect a clock signal (frequency divided by 2) from a global network to datapath
|
|
|
|
# Use an external signal to enable the clock signal
|
|
|
|
.model clk_gate
|
2022-09-29 17:32:31 -05:00
|
|
|
.inputs rst_i clk_i data_i
|
2022-09-29 16:23:17 -05:00
|
|
|
.outputs data_o
|
|
|
|
|
|
|
|
.names $true
|
|
|
|
1
|
|
|
|
|
|
|
|
.names $true ff_i
|
|
|
|
1 1
|
|
|
|
|
|
|
|
.names ff_o data_i data_o
|
|
|
|
11 1
|
|
|
|
|
2022-09-29 17:32:31 -05:00
|
|
|
.subckt dffr D=ff_i Q=ff_o C=clk_i R=rst_i
|
2022-09-29 16:23:17 -05:00
|
|
|
|
|
|
|
.end
|