summaryrefslogtreecommitdiffstats
path: root/part_2/ex7/ex7.v
blob: 079c34e12d19beb2c39448fb06298f653984add4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module ex7(KEY3, HEX0, HEX1);

	input KEY3;
	output [6:0] HEX0, HEX1;

	wire [7:0] count;
	
	LFSR(KEY3, count);
	
	hex_to_7seg h0(HEX0, count[3:0]);
	hex_to_7seg h1(HEX1, count[7:4]);

endmodule