Like Gayan there, I'm kinda curious what aspects of
digital electronics you hate or find hard in particular (do you specifically hate the things you find hard and vice-versa?), and for that matter, are there any parts of it you
do like at all, or find easy?
Any parts you'd really
like to be able to do, but get frustrated by? You seem pretty much at the end of your tether here. Maybe OTOH you find some aspects of digital electronics "too easy" compared to analogue, such that the whole thing is not as interesting to you and you can't focus on the bits that you do find hard? I've no idea, I'm just trying to have a guess.
Me, I think I find the digital stuff sorta appealling because I started out in programming (have done so most of my life, still do it), so there's a fair bit of overlap there. I haven't got too much experience with that side of things though, as I'm still mostly working on the
analogue of things
(though I do still find those parts interesting too).
Hope we can collectively help you out somehow before your digital exam. It sounds like other than that, you're pretty good at electronics in general, so it'd be terrible if this one subject spoilt things. Maybe you need to find a way to
become more interested in the subject?