This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import dfhdl.* | |
| class binning( | |
| val DATA_WIDTH: Int <> CONST = 8, | |
| val IMAGE_WIDTH: Int <> CONST = 640, | |
| val IMAGE_HEIGHT: Int <> CONST = 480 | |
| ) extends EDDesign: | |
| val image_line_buff = new lin_buff( | |
| BUFFER_WIDTH = DATA_WIDTH, BUFFER_DEPTH = IMAGE_WIDTH, | |
| BLOCK_WIDTH = 3, BLOCK_HEIGHT = 3) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import dfhdl.* | |
| class cell_histogram( | |
| val IMAGE_WIDTH: Int <> CONST = 640, | |
| val INPUT_BIN_WIDTH: Int <> CONST = 11, | |
| val OUTPUT_BIN_WIDTH: Int <> CONST = 14 | |
| ) extends EDDesign: | |
| val BINS: Int <> CONST = 9 + 1 | |
| val PARTIAL_HISTOGRAM_WIDTH: Int <> CONST = INPUT_BIN_WIDTH * BINS | |
| val CELLS_PER_ROW: Int <> CONST = IMAGE_WIDTH / 8 | |
| val cell_buff = new lin_buff( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import dfhdl.* | |
| class cell_histogram( | |
| val IMAGE_WIDTH: Int <> CONST = 640, | |
| val INPUT_BIN_WIDTH: Int <> CONST = 11, | |
| val OUTPUT_BIN_WIDTH: Int <> CONST = 14 | |
| ) extends EDDesign: | |
| val BINS: Int <> CONST = 9 + 1 | |
| val PARTIAL_HISTOGRAM_WIDTH: Int <> CONST = INPUT_BIN_WIDTH * BINS | |
| val CELLS_PER_ROW: Int <> CONST = IMAGE_WIDTH / 8 | |
| val histogram_adder = new partial_histogram_add( |
OlderNewer