We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4923d06 commit 7335eddCopy full SHA for 7335edd
tlv_lib/fpga_includes.tlv
@@ -811,6 +811,8 @@
811
812
813
/// Convenience macros:
814
+
815
+/// Simple 7-segment decoder.
816
\TLV sseg_decoder($_out, $_val)
817
$_out[6:0] =
818
($_val == 0) ? 7'b1000000 : // '0'
@@ -831,6 +833,15 @@
831
833
($_val == 15) ? 7'b0111000 : // 'f'
832
834
7'b1111111 ; // 'nothing'
835
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
845
846
// ===================================================
847
// FOR TESTING
0 commit comments