diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-03-05 20:47:07 -0800 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2019-03-05 20:47:07 -0800 |
commit | b1b9edf5cc9e280346ffa0132d570a8ff656eb22 (patch) | |
tree | 5987ddb802be317954e56cb0596a0c72b398f5d6 /examples | |
parent | e22afeae907e6340aac7797f60c309916fd72097 (diff) | |
download | yosys-b1b9edf5cc9e280346ffa0132d570a8ff656eb22.tar.gz yosys-b1b9edf5cc9e280346ffa0132d570a8ff656eb22.tar.bz2 yosys-b1b9edf5cc9e280346ffa0132d570a8ff656eb22.zip |
Improve igloo2 example
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/igloo2/example.v | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/igloo2/example.v b/examples/igloo2/example.v index 05b6ced5e..4a9486e50 100644 --- a/examples/igloo2/example.v +++ b/examples/igloo2/example.v @@ -24,13 +24,14 @@ module example ( assign {LED1, LED2, LED3, LED4} = outcnt ^ (outcnt >> 1); + // assign CA = counter[10]; // seg7enc seg7encinst ( // .seg({AA, AB, AC, AD, AE, AF, AG}), // .dat(CA ? outcnt[3:0] : outcnt[7:4]) // ); - assign {AA, AB, AC, AD, AE, AF, AG} = ~(7'b 100_0000 >> outcnt[7:4]); - assign CA = counter[10]; + assign {AA, AB, AC, AD, AE, AF, AG} = ~(7'b 100_0000 >> outcnt[6:4]); + assign CA = outcnt[7]; endmodule module seg7enc ( |