To have an imaginative, unusual or foolish idea, to invent something unreal.
To assemble something quickly; to knock up.