Академический Документы
Профессиональный Документы
Культура Документы
the SystemC official documentation): all types that I used to deal with in vhdl
simulations have not been "ported" to SystemC.
I mean:
Is it so or am I missing something?
HaskellElephant
7,02542761
asked Apr 5 '11 at 11:27
Andry
5,8311778162
add a comment
2 Answers
active oldest votes
up vote
1
down vote
accepted
Consider std_logic in the vhdl standard library, there is not an equivalent in
SystemC, however, in the sysc documentation, I see many examples using bool.
Consider std_logic_vector, I see no equivalent in sysc. Instead I can see, in many
examples, usage of sc_int.
It's not all that correct.
In SystemC you can use sc_logic and sc_lv< T > as std_logic and std_logic_vector
respectively.
While you can use integer, hex or even 'bit-specific' literal to assign sc_lv< T >
a value.
For example:
SC_CTOR (some_device)
{
write_enable.initialize(SC_LOGIC_0);