xschem/xschem_library/binto7seg/sevenseg012.sch

26 lines
826 B
XML

v {xschem version=2.9.5_RC6 file_version=1.1}
G {}
V {}
S {}
E {}
T {Copyright (C) 2008 DJ Delorie (dj delorie com)
Distributed under the terms of the GNU General Public License,
either verion 2 or (at your choice) any later version.} 40 -150 0 0 0.4 0.4 {}
C {ipin.sym} 280 -270 0 0 {name=p1 lab=ibcd[1:0]}
C {opin.sym} 500 -270 0 0 {name=p2 lab=oseg[6:0] verilog_type=reg}
C {title.sym} 160 -30 0 0 {name=l1 author="Stefan Schippers"}
C {code.sym} 320 -310 0 0 {name=CODE value="// Copyright (C) 2008 DJ Delorie <dj delorie com>
// Distributed under the terms of the GNU General Public License,
// either verion 2 or (at your choice) any later version.
always @ (ibcd)
begin
case (ibcd) // abcdefg
0 : oseg = 7'b1111110;
1 : oseg = 7'b0110000;
2 : oseg = 7'b1101101;
default : oseg = 0;
endcase
end
"}