Skip to content

Commit 7335edd

Browse files
committed
For Tiny Tapeout.
1 parent 4923d06 commit 7335edd

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tlv_lib/fpga_includes.tlv

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,8 @@
811811
812812
813813
/// Convenience macros:
814+
815+
/// Simple 7-segment decoder.
814816
\TLV sseg_decoder($_out, $_val)
815817
$_out[6:0] =
816818
($_val == 0) ? 7'b1000000 : // '0'
@@ -831,6 +833,15 @@
831833
($_val == 15) ? 7'b0111000 : // 'f'
832834
7'b1111111 ; // 'nothing'
833835

836+
/// For Tiny Tapeout
837+
838+
// Map TT I/Os to Virtual Lab.
839+
\TLV tt_connections()
840+
$slideswitch[7:0] = *ui_in;
841+
$sseg_segment_n[6:0] = *uo_out[6:0];
842+
$sseg_decimal_point_n = *uo_out[7];
843+
$sseg_digit_n[7:0] = 8'b11111110;
844+
834845

835846
// ===================================================
836847
// FOR TESTING

0 commit comments

Comments
 (0)