45 lines
552 B
Plaintext
45 lines
552 B
Plaintext
.model top
|
|
.inputs i_a i_b i_c clk
|
|
.outputs o_d o_e o_f o_g o_h o_i
|
|
|
|
#Input logic
|
|
.names i_a i_b w_d
|
|
11 1
|
|
|
|
#Input latches
|
|
.latch i_a l_a re clk 0
|
|
.latch i_b l_b re clk 0
|
|
.latch i_c l_c re clk 0
|
|
.latch w_d l_d re clk 0
|
|
|
|
#Internal logic
|
|
.names l_a l_b l_c l_d w_and
|
|
1111 1
|
|
|
|
#Output latches
|
|
.latch w_and l_e re clk 0
|
|
.latch w_and l_f re clk 0
|
|
.latch w_and l_g re clk 0
|
|
.latch w_and l_h re clk 0
|
|
|
|
#Output logic
|
|
.names w_d o_d
|
|
1 1
|
|
|
|
.names l_e o_e
|
|
1 1
|
|
|
|
.names l_f o_f
|
|
1 1
|
|
|
|
.names l_g o_g
|
|
1 1
|
|
|
|
.names l_h o_h
|
|
1 1
|
|
|
|
.names w_d l_e l_f l_g l_h o_i
|
|
11111 1
|
|
|
|
.end
|