Hi,
With FT9, what is the best way to create a replicated
string of X or 1 or 0.
5SB"X" "XXXXX"
5SB"0" "00000"
5SB"1" "11111"
However, if I change this to hex, it changes the result for 1:
5SX"X" "XXXXX"
5SX"0" "00000"
5SX"1" "00001"
If I make it unsigned (the default):
5UB"X" "0000X" 5B"X"
5UB"0" "00000" 5B"0"
5UB"1" "00001" 5B"1"
Bit replication of identical values is something I use
alot and would be handy if it was easier. It seems odd
that I need to use S to get the results I want.
I think we would benefit from some replication operation.
Something like:
5R'X' = 5R"X" = "XXXXX"
5R'0' = 5R"0" = "00000"
5R'1' = 5R"1" = "11111"
Cheers,
Jim
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Jim Lewis Director of Training mailto:Jim@SynthWorks.com SynthWorks Design Inc. http://www.SynthWorks.com 1-503-590-4787 Expert VHDL Training for Hardware Design and Verification ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Received on Fri Dec 3 10:22:39 2004
This archive was generated by hypermail 2.1.8 : Fri Dec 03 2004 - 10:22:51 PST