Functionalism holds the view that even a clockwork mechanism could instantiate intelligence and its sub-category of cognition, albeit the apparatus would be huge and absurdly slow.
The mix-up one can run into here is that 90% of people interpret "consciousness" as signifying cognition (identification and understanding of received information, which has dependency on a memory system or retention of data). Which is fine when one is not referring to the
hard-problem, but otherwise -- without being more specific, it's almost a guarantee that one party will be headed north while the other is veering off west.
Cognition is really just a specialized function of intelligence, and the latter (in a basic context sans subtle bells and whistles) can be wholly accounted for by the interacting components of a complex system, as the best AI and robotics already demonstrate (short of the millions of years of environmental adaptations and refinements that brains accordingly enjoy).
The manifestations of consciousness (images, sounds, odors, tactile sensations, thoughts, etc) surely correlate to neural patterns, too, but there is no mature science for predicting them in a strict and universally reliable way. Because there is no physics (apart from fringe speculations and hypotheses) that attributes a capacity for manifestation to matter to begin with.
Minus a deep, underlying theory that elaborates on what the sophisticated presentations of the brain would incrementally arise from (just as biological cells and tissues do not float on their own, but depend on the particles and fields of physics), what's left is the equivalent of asserting magical conjuring takes place via electrochemical processes performing the correct algorithmic dance or spell. Plus the embarrassment that the "brutely emergent novelty" conjured only receives private verification, is not even detectable by outside observers slash instruments.
Thomas Henry Huxley: "How it is that anything so remarkable as a state of consciousness comes about as a result of irritating nervous tissue, is just as unaccountable as the appearance of Djin when Aladdin rubbed his lamp." --Lessons in Elementary Physiology
A reminder here that 90% of people [a purely figurative expression for denoting the majority] will interpret him as referring to cognition and its resultant amenability over later decades to a mechanistic account; and not the experiences / manifestations of consciousness. If one does not narrow down to something more specific than "consciousness", the listeners/readers will inevitably wander all over the place with respect to what one means.
_