Jump to content

mariaantoanet

Members
  • Content Count

    1
  • Joined

  • Last visited

About mariaantoanet

  • Rank
    Member
  • Birthday 11/24/1988

Contact Methods

  • AIM
    310
  • MSN
    anhtiendi@yahoo.com
  • Website URL
    http://forums.accellera.org
  • ICQ
    350
  • Yahoo
    viettien@yahoo.com
  • Jabber
    davidhan@jabber.com
  • Skype
    viettien

Profile Information

  • Gender
    Male
  • Location
    tech
  • Interests
    play football
  1. Hello friends. I have questions to ask for your help. I have a struct defined as struct pixel { sc_uint<8> r; sc_uint<8> g; sc_uint<8> b; }; Then I try to pass actual pixel values to the ports, defined as pixel data type in main.cpp sc_signal<pixel> p1; sc_signal<pixel> p2; p1.write(pixel(1, 2, 3)); p2.write(pixel(4, 5, 6)); But it seems p1.write() and p2.write() didn't initialize p1 and p2 correctly as I still see they don't have the expected pixel values (1,2,3) and (4,5,6). Do I need to use sc_interface to pass this customized data type around? Thank's a lot!
×
×
  • Create New...