URL
https://opencores.org/ocsvn/csa/csa/trunk
[/] [csa/] [trunk/] [quartus10/] [hex2seg.v] - Diff between revs 33 and 38
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 33 |
Rev 38 |
Line 2... |
Line 2... |
module hex2seg(
|
module hex2seg(
|
input [3:0] hex
|
input [3:0] hex
|
, output reg [7:0] seg
|
, output reg [7:0] seg
|
);
|
);
|
|
|
|
|
always @(hex)
|
always @(hex)
|
case (hex) // hgfedcba
|
case (hex) // hgfedcba
|
4'h0:seg<=~8'b00111111;
|
4'h0:seg<=~8'b00111111;
|
4'h1:seg<=~8'b00000110;
|
4'h1:seg<=~8'b00000110;
|
4'h2:seg<=~8'b01011011;
|
4'h2:seg<=~8'b01011011;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.